AllowCredential

data class AllowCredential(val id: ByteArray, val transports: List<String>? = null)

A credential descriptor pairing a credential ID with optional transport hints.

Used in WebAuthnProvider.authenticate to constrain which passkeys the authenticator offers and to indicate how the client can reach the authenticator (e.g., "internal", "hybrid", "usb", "ble", "nfc"). Including transport hints enables cross-device authentication flows such as QR code scanning.

When transports is null, the authenticator uses its default transport selection. Unknown transport strings are passed through without validation — the browser or OS ignores values it does not recognize.

Constructors

Link copied to clipboard
constructor(id: ByteArray, transports: List<String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The raw credential ID bytes.

Link copied to clipboard

Optional list of transport hints (e.g., "internal", "hybrid").

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int