WebAuthn Bridge Service
Component Detail
Service Layer
high complexity
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Flutter platform channel that abstracts native WebAuthn authenticator APIs on iOS (ASAuthorizationController) and Android (CredentialManager), converting Dart-side ceremony options into native calls and returning typed authenticator responses. Supports both platform authenticators (iCloud Keychain, Google Password Manager) and roaming hardware security keys.
webauthn-bridge-service
Responsibilities
- Invoke iOS ASAuthorizationController for passkey registration and assertion ceremonies
- Invoke Android CredentialManager APIs for passkey registration and assertion ceremonies
- Marshal PublicKeyCredentialCreationOptions and RequestOptions to native platform format
- Return AuthenticatorAttestationResponse and AuthenticatorAssertionResponse as typed Dart objects
- Map user cancellation and biometric failure to typed PasskeyError exceptions
Interfaces
register(options: PublicKeyCredentialCreationOptions): Future<AuthenticatorAttestationResponse>
authenticate(options: PublicKeyCredentialRequestOptions): Future<AuthenticatorAssertionResponse>