Android email validation vs Firebase email validation -


is there way use firebase email validation without performing credentials update , listening failures? along lines of firebaseauth.validateemail(someemail) ?

in android possible check valid input email using :

android.util.patterns.email_address.matcher(someemail).matches();

however accepts emails finishing top level domain being 1 character long, eg. test@email.c

such emails however, invalid firebase , throw following exception if used:

com.google.firebase.firebaseexception: internal error has occured. [ invalid_email ]

is there way of marking input field invalid if user enters firebase-invalid email address?

after research, invalid_email seems have 2 reasons. 1 invalid format can checked android method. other 1 email not signed up. think facing second case since test@email.c valid in email format (although domain doesn't exists).

therefore, not think there firebaseauth.validateemail(someemail) method authentication method validate email. throws exception if invalid, can use try , catch handle invalid case.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -