FirebaseManageUsers class
a class used to manage firebase authentication
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- emailRegex ↔ String
-
complex regex that validate a email id with the general email standards
getter/setter pair
- regex ↔ String
-
simple regex for password,
that checks the password has 6-32 chars or not
getter/setter pair
Static Methods
-
doesAccountExistWithThis(
String email, AuthenticationProvider authProvider) → Future< bool> -
checks whether any account exist with the provided
email
-
listenToFirebaseAuthStateChanges(
AuthenticationProvider authProvider) → void - initiate a listener for user authentication changes
-
loginWithEmailPassword(
String email, String password, AuthenticationProvider authProvider) → Future< bool> -
login using
email
andpassword
-
registerWithEmailPasswordName(
String email, String password, String name, AuthenticationProvider authProvider) → Future< bool> -
registration with
email
,password
andname
-
sendPasswordResetEmail(
String email, AuthenticationProvider authProvider) → Future< bool> -
sends password reset email to provided
email
-
signOut(
AuthenticationProvider authProvider) → Future< void> - logs out the user
-
updatePassword(
String resetCode, String newPassword, AuthenticationProvider authProvider) → Future< bool> -
updates password with
resetCode
andnewPassword