What is the error.code of an invalid email in the case of a user registration in Firebase?

Asked

Viewed 28 times

0

I am creating a user registration panel in firebase with email and password through an application in React-Native, so, at the time of registration, I wanted to check if the e-mail entered is valid. As far as I know,

auth/weak-password

this is a small password... but in the case of an invalid email inserted?

  • Are you doing any checking? How is the code you created for it? By the way the Weak-password method treats weak passwords.

1 answer

0


Good! There are some messages related to user/email validation, the main ones being :

auth/invalid-email The value provided for the email user property is invalid. It needs to be a string email address

auth/user-not-found There is no existing user record corresponding to the given identifier.

auth/email-already-exists The email provided is already in use by another user. Each user needs to have a unique email.

A complete reference : https://firebase.google.com/docs/auth/admin/errors?hl=pt-br

Browser other questions tagged

You are not signed in. Login or sign up in order to post.