createPasskey

@RequiresApi(value = 26)
suspend fun createPasskey(requestJson: String): String

Creates a new Passkey credential for the user.

Return

The registration response JSON containing the newly created Passkey.

Parameters

requestJson

The WebAuthn JSON request specifying credential creation details.

Throws

If the device does not support Passkeys.

If Passkey creation fails.