i’m trying to create an app using firebase. here my code:
const user = await createUserWithEmailAndPassword(auth, email, password)
await user.user.sendEmailVerification()
user is initializing in firebase authentication but this is happening :
TypeError: user.user.sendEmailVerification is not a function.
2
Answers
You can use
async-await
syntax withtry-catch
this way :since firebase 9 :