I am using Javascript and Vue and integrating firebase with my app
Scenario(Already built)
- I have a
sign inpage where users sign in - For a user to be signed in the
emailVerifiedproperty should be true
Problem
- I am able to send verification email only when i use the
firebase.auth().createUserWithEmailAndPassword(email, password)method
Signup method
signup: async (email, password) => {
const user = await firebase.auth().createUserWithEmailAndPassword(email, password)
await user.user.sendEmailVerification()
return `Check your email for verification mail before logging in`
},
Desired solution
I create a new user from the
firebase consoleI pass
emailas a parameter oruidand that method should send a verification email to the user so they can verify thier emailCompletely scrap the
signupmethod as i don't need it anymore to send a verification mail
Is there anyway to send a verification email without signing in ?