PasskeyIdpUtils class
Utility functions for the Passkey identity provider.
Constructors
- PasskeyIdpUtils({required Duration challengeLifetime, required Passkeys passkeys})
- Creates a new instance of PasskeyIdpUtils.
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
-
authenticate(
Session session, {required PasskeyLoginRequest request, required Transaction? transaction}) → Future< UuidValue> - Authenticates the client with the given Passkey credentials.
-
createChallenge(
Session session, {required Transaction? transaction}) → Future< PasskeyChallenge> - Creates a new challenge to be used for a subsequent registration or login.
-
deletePasskeyAccounts(
Session session, {required UuidValue? authUserId, required UuidValue? passkeyAccountId, required Transaction? transaction}) → Future< List< DeletedPasskeyAccount> > - Deletes all passkey accounts matching the given filters.
-
getAccount(
Session session) → Future< PasskeyAccount?> - Returns the possible PasskeyAccount associated with an session.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerPasskey(
Session session, {required UuidValue authUserId, required PasskeyRegistrationRequest request, required Transaction? transaction}) → Future< void> -
Links the given passkey to the
authUserId. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited