Persistence contract for credential 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
-
delete(
String credentialId) → FutureOr< void> - Removes a password credential by persistence identifier.
-
deleteForUser(
String userId) → FutureOr< void> -
Removes every password credential owned by
userId. -
findByIdentifier(
String identifier) → FutureOr< AuthPasswordCredential?> - Finds a password credential by its normalized login identifier.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
AuthUser user, AuthPasswordCredential credential) → FutureOr< AuthUser?> - Atomically persists a user and its password credential.
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
AuthPasswordCredential credential) → FutureOr< AuthPasswordCredential?> - Updates an existing password credential, for example after rehashing.
-
updatePasswordForUser(
{required String userId, required String passwordHash, required DateTime updatedAt}) → FutureOr< int> -
Replaces the password hash on every password credential for
userId.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited