addPasskey method
Attempts to create and register a new passkey for the authenticated user.
Parameters:
options
: Optional configuration for passkey creation.
Returns:
A Future<Passkey>
representing an object containing all of the data about the new passkey.
Throws:
A PassageError
in cases such as:
- User cancels the operation
- App configuration was not done properly
- etc.
Implementation
Future<Passkey> addPasskey([PasskeyCreationOptions? options]) {
return PassageFlutterPlatform.instance.addPasskey(options);
}