AndroidPasskeyClient
class AndroidPasskeyClient(contextProvider: PasskeyPromptContextProvider, credentialManagerFactory: (Context) -> CredentialManager = CredentialManager::create, codec: WebAuthnJsonCodec) : PasskeyClient
Android CredentialManager backed PasskeyClient implementation.
The supplied prompt context provider must resolve an Activity-backed context because passkey ceremonies may launch system UI.
Constructors
Link copied to clipboard
constructor(contextProvider: PasskeyPromptContextProvider, credentialManagerFactory: (Context) -> CredentialManager = CredentialManager::create, codec: WebAuthnJsonCodec)
constructor(context: Context, codec: WebAuthnJsonCodec, credentialManager: CredentialManager = CredentialManager.create(context))
Convenience constructor for apps that want default prompt-context handling.
Types
Functions
Link copied to clipboard
Link copied to clipboard
open suspend override fun createCredential(options: PublicKeyCredentialCreationOptions): PasskeyResult<RawRegistrationResponse>
Link copied to clipboard
open suspend override fun getAssertion(options: PublicKeyCredentialRequestOptions): PasskeyResult<RawAuthenticationResponse>