Passkeys
The Passkeys interface provides methods for detecting Passkeys support, registering, and authenticating with Passkeys.
Types
Link copied to clipboard
data class AuthenticateParameters( val activity: Activity, val domain: String, val sessionDurationMinutes: UInt = Constants.DEFAULT_SESSION_TIME_MINUTES)
Content copied to clipboard
Data class used for wrapping parameters used with Passkeys authentication
Link copied to clipboard
data class RegisterParameters(val activity: Activity, val domain: String)
Content copied to clipboard
Data class used for wrapping parameters used with Passkeys registration
Link copied to clipboard
Data class used for wrapping parameters used with Passkeys updates
Functions
Link copied to clipboard
abstract suspend fun authenticate(parameters: Passkeys.AuthenticateParameters): AuthResponse
Content copied to clipboard
abstract fun authenticate(parameters: Passkeys.AuthenticateParameters, callback: (AuthResponse) -> Unit)
Content copied to clipboard
Authenticates a Passkey registration.
Link copied to clipboard
abstract suspend fun register(parameters: Passkeys.RegisterParameters): WebAuthnRegisterResponse
Content copied to clipboard
abstract fun register(parameters: Passkeys.RegisterParameters, callback: (WebAuthnRegisterResponse) -> Unit)
Content copied to clipboard
Creates a new Passkey registration.
Link copied to clipboard
abstract suspend fun update(parameters: Passkeys.UpdateParameters): WebAuthnUpdateResponse
Content copied to clipboard
abstract fun update(parameters: Passkeys.UpdateParameters, callback: (WebAuthnUpdateResponse) -> Unit)
Content copied to clipboard
Updates a Passkey registration.