I am using Javascript
and Vue
and integrating firebase
with my app
Scenario(Already built)
- I have a
sign in
page where users sign in - For a user to be signed in the
emailVerified
property 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 console
I pass
email
as a parameter oruid
and that method should send a verification email to the user so they can verify thier emailCompletely scrap the
signup
method as i don't need it anymore to send a verification mail
Is there anyway to send a verification email without signing in ?