PasskeyAuth

open class PasskeyAuth(preferImmediatelyAvailableCredentials: Boolean)

PasskeyAuth is a class responsible for handling passkey-related operations.

It provides methods for creating, signing in with, and checking the support of passkeys.

Parameters

preferImmediatelyAvailableCredentials

Indicates whether to prefer using only immediately available credentials (local) or allow hybrid/remote credentials as well. Defaults to false which means hybrid and remote credentials may be used.

Throws

if the device does not support passkeys.

Constructors

Link copied to clipboard
constructor(preferImmediatelyAvailableCredentials: Boolean)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun canUsePasskeys(): Boolean

Checks if the device and Google Play Services support Passkeys.

Link copied to clipboard
@RequiresApi(value = 26)
suspend fun createPasskey(requestJson: String): String

Creates a new Passkey credential for the user.

Link copied to clipboard
suspend fun signInWithPasskey(requestJson: String): String

Signs in using an existing Passkey.