EmailAuthController class

Controller for email authentication.

Constructors

EmailAuthController(Caller caller)
Creates a new email authentication controller.

Properties

caller → Caller
A reference to the auth module as retrieved from the client object.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createAccountRequest(String userName, String email, String password) Future<bool>
Attempts to create a new account request with the given email and password. If successful, true is returned. If the attempt is not a success, false is returned.
initiatePasswordReset(String email) Future<bool>
Attempts to initiate a password reset for the given email. If successful, true is returned. If the attempt is not a success, false is returned.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetPassword(String email, String verificationCode, String password) Future<bool>
Attempts to reset the password for the given email with the given verification code and new password. If successful, true is returned. If the attempt is not a success, false is returned.
signIn(String email, String password) Future<UserInfo?>
Attempts to sign in with email and password. If successful, a UserInfo is returned. If the attempt is not a success, null is returned.
toString() String
A string representation of this object.
inherited
validateAccount(String email, String verificationCode) Future<UserInfo?>
Attempts to validate the account with the given email and verification code. If successful, a UserInfo is returned. If the attempt is not a success, null is returned.

Operators

operator ==(Object other) bool
The equality operator.
inherited