MockEmailPasswordAuthProvider class
Mock implementation of EmailPasswordAuthProvider for testing or demos.
This provider allows any email/password combination and creates mock users.
- Inheritance
-
- Object
- AuthProvider
- EmailPasswordAuthProvider
- MockEmailPasswordAuthProvider
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- providerId → String
-
Unique identifier for this provider
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
authenticate(
EmailPasswordCredentials credentials) → Future< AuthResult> -
Authenticates a user with the given credentials
override
-
checkSession(
AuthToken token, AuthUser user) → Future< bool> -
Checks if the current session is valid
inherited
-
formatLoginError(
dynamic error) → String -
Creates a provider-specific error message for failed logins
inherited
-
login(
Map< String, dynamic> credentials) → Future<AuthResult> -
Performs the login operation with provider-specific credentials
inherited
-
logout(
) → Future< void> -
Performs the logout operation for this provider
inherited
-
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