PasskeyAuth<Request, Response> class
Enables passkey based registration and authentication. Entrypoint of the Flutter passkeys package.
Generic type Request indicates the type that has to be provided to
get registration and authentication going.
Generic type Response indicates the type that will be returned after
successful registration or authentication.
Both types depend on how RelyingPartyServer works.
PasskeyAuth connects PasskeyAuthenticator (WebAuthn Authenticator) and RelyingPartyServer (WebAuthn relying party server)
The PasskeyAuthenticator depends on the platform (e.g. iOS, Android, web). Currently this package contains implementations for iOS and Android.
The RelyingPartyServer implementation depends on the relying party server. This package comes with an implementation that enables usage of the Corbado backend as a relying party server. Additional backends can be setup easily though by implementing RelyingPartyServer.
Constructors
-
PasskeyAuth(RelyingPartyServer<
Request, Response> _backend) - Constructor
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
-
authenticateWithEmail(
Request request) → Future< Response?> - Signs in an existing user identified by an email address.
-
isSupported(
) → Future< bool> - Determines if passkeys are supported on the current platform by checking if an authenticator is available.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerWithEmail(
Request request) → Future< Response?> - Implements the registration flow.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited