[TIL] 221126

BeanxxΒ·2022λ…„ 11μ›” 26일
0

TIL

λͺ©λ‘ 보기
103/120
post-thumbnail

πŸ”₯ 였늘 ν•œ 일

  • ν”„λ‘œκ·Έλž˜λ¨ΈμŠ€ Lv.1 μ΅œμ†Œμ§μ‚¬κ°ν˜•, λͺ¨μ˜κ³ μ‚¬(완전탐색) 2문제 μ™„λ£Œ
  • [TS-ν”Œμ ]
    • firebase authentication μ΄μš©ν•΄μ„œ λΉ„λ°€λ²ˆν˜Έ μž¬μ„€μ • 이메일 전솑 κΈ°λŠ₯ κ΅¬ν˜„
    • Portal을 μ΄μš©ν•΄μ„œ modal κ΅¬ν˜„

🚨 Error Handling

μ•„λž˜ ν¬μŠ€νŠΈμ— 였늘의 error handling 1️⃣5οΈβƒ£λ²ˆ μΆ”κ°€ν–ˆλ”°
πŸ”— [TS - Error Handling] JS β†’ TS λ§ˆμ΄κ·Έλ ˆμ΄μ…˜ 쀑 맞λ‹₯뜨린 error λͺ¨μŒzip

1️⃣5️⃣ Property β€˜value’ does not exist on type β€˜EventTarget’.


🧚 μƒˆλ‘­κ²Œ μ•Œκ²Œ 된 λ‚΄μš©

πŸ’‘Β firbase Authentication μ΄μš©ν•΄μ„œ λΉ„λ°€λ²ˆν˜Έ μž¬μ„€μ • 이메일 전솑 κΈ°λŠ₯ κ΅¬ν˜„ν•΄λ³΄κΈ°

μ•„λž˜ κ³΅μ‹λ¬Έμ„œλŒ€λ‘œ κ΅¬ν˜„ν•˜λ©΄ κΈ°λŠ₯ 자체 κ΅¬ν˜„μ€ so easy πŸ™Œ
πŸ”— [firbase authentication 곡식 λ¬Έμ„œ] Manage Users in Firebase

import { getAuth, sendPasswordResetEmail } from "firebase/auth";

const [email, setEmail] = useState("")

const onSendPwResetEmail = async () => {
  const auth = getAuth()
  await sendPasswordResetEmail(auth, email)
  .then(() => {
		...
  })
  .catch((error) => {
		...
	}
}

μœ„μ™€ 같이 κ΅¬ν˜„ν•˜λ©΄ 정상 λ™μž‘μ€ λ˜λŠ”λ° gmail에선 μ „μ†‘λœ 메일이 μžλ™μœΌλ‘œ μŠ€νŒΈλ©”μΌλ‘œ λΆ„λ₯˜λ˜μ–΄λ²„λ¦°λ‹€,,
before email

κ·Έλž˜μ„œ firebase - Authentication - Templates - λΉ„λ°€λ²ˆν˜Έ μž¬μ„€μ •μ— λ“€μ–΄κ°€μ„œ 메일 λ‚΄μš© ν˜•νƒœλ₯Ό λ³€κ²½ν•΄μ£Όμ—ˆλ‹€.
firebase template

λ³€κ²½ν•œ ν›„ λ‹€μ‹œ 메일 전솑을 해보면 μ•„λž˜μ™€ 같이 λ³€κ²½ν•œ ν˜•νƒœλ‘œ 메일이 잘 μ „μ†‘λœλ‹€ :>
email


πŸ‘€Β MEMO

μ•„λž˜ ν¬μŠ€νŠΈμ— portal둜 λͺ¨λ‹¬μ°½ κ΅¬ν˜„ κ³Όμ • λ”°λ‘œ ν¬μŠ€νŒ…ν•¨!
[TS] React Portals μ΄μš©ν•˜μ—¬ modal κ΅¬ν˜„ν•΄λ³΄κΈ° πŸ‘·β€β™€οΈ


✍️ Diary

μ˜€λŠ˜μ€ μ˜€μ „λΆ€ν„° μΉœμ²™μ–Έλ‹ˆ κ²°ν˜Όμ‹μ— κ°”λ‹€μ˜€λŠλΌ λ°€λΆ€ν„° 곡뢀 μ‹œμž‘..πŸŒ™
Udemy - React κ°•μ˜λ₯Ό 톡해 μ•Œκ²Œλ˜μ—ˆλ˜ Portalλ₯Ό μ΄μš©ν•œ modalλ₯Ό νƒ€μŠ€λ‘œ κ΅¬ν˜„ν•˜λŠ”λ° 생각보닀 μ—λŸ¬λ„ 많이 λ‚˜κ³  λ°”λ‘œ ν”Œμ μ— μ μš©ν•˜λ €κ³  ν•˜λ‹€ λ³΄λ‹ˆκΉŒ μ’€ ν—€λ§€μ„œ μ‹œκ°„μ΄ κ½€ κ±Έλ Έλ‹΄,,

profile
FE developer

0개의 λŒ“κΈ€