firebase authentication - sana028/VueLearningsPoc GitHub Wiki
Enable email and password authentication in firebase authentication.
Add firebase configuration details to your application and initialize the app.
In firebase we have built in functions for authenticate user with email and password
1.SIGNUP for signup use createUserWithEmailAndPassword method which built in one from firebase/auth package. pass auth, emai, password to this method like ex:createUserWithEmailAndPassword(auth, email, password);
like above image we will create a new account for the user using firebase.
2.SIGNIN like signup for signin also we have a built in method to check the user is already signed up or not using signInWithEmailAndPassword(auth, email, password) In this method also you need to pass the auth, login email and password. The firebase will verify the user is already signed Up or not
3.Email Verification If we want check the user entered email is valid or not firebase have another built in method which is verify the user email through sending a email verification mail to the user email.
Syntax: await sendEmailVerification(user);
in this method we need to send the response data which is getting at the time of signup through this data it will send email verification mail to that signup user