Passkeys

interface 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)

Data class used for wrapping parameters used with Passkeys authentication

Link copied to clipboard
data class RegisterParameters(val activity: Activity, val domain: String)

Data class used for wrapping parameters used with Passkeys registration

Link copied to clipboard
data class UpdateParameters(val id: String, val name: String)

Data class used for wrapping parameters used with Passkeys updates

Properties

Link copied to clipboard
abstract val isSupported: Boolean

Indicates if Passkeys is supported on the device.

Functions

Link copied to clipboard
abstract suspend fun authenticate(parameters: Passkeys.AuthenticateParameters): AuthResponse
abstract fun authenticate(parameters: Passkeys.AuthenticateParameters, callback: (AuthResponse) -> Unit)

Authenticates a Passkey registration.

Link copied to clipboard
abstract fun register(parameters: Passkeys.RegisterParameters, callback: (WebAuthnRegisterResponse) -> Unit)

Creates a new Passkey registration.

Link copied to clipboard
abstract suspend fun update(parameters: Passkeys.UpdateParameters): WebAuthnUpdateResponse
abstract fun update(parameters: Passkeys.UpdateParameters, callback: (WebAuthnUpdateResponse) -> Unit)

Updates a Passkey registration.