trait PasskeyAuthenticatable

Methods

static void
bootPasskeyAuthenticatable()

Boot the passkey authenticatable trait for a model.

passkeys()

Get the passkeys associated with the user.

bool
hasPasskeysEnabled()

Determine if the user has any passkeys enabled.

string
getPasskeyUserHandle()

Get the unique user handle for WebAuthn.

string
getPasskeyDisplayName()

Get the display name for WebAuthn registration.

string
getPasskeyUsername()

Get the username for WebAuthn registration.

Details

at line 19
static void bootPasskeyAuthenticatable()

Boot the passkey authenticatable trait for a model.

Return Value

void

at line 36
MorphMany passkeys()

Get the passkeys associated with the user.

Return Value

MorphMany

at line 44
bool hasPasskeysEnabled()

Determine if the user has any passkeys enabled.

Return Value

bool

at line 54
string getPasskeyUserHandle()

Get the unique user handle for WebAuthn.

This should be a stable identifier that does not reveal PII.

Return Value

string

at line 71
string getPasskeyDisplayName()

Get the display name for WebAuthn registration.

Shown prominently in authenticator UIs (registration prompts, account pickers, password manager entries). Falls back from name to email to the auth identifier when columns are absent.

Return Value

string

at line 85
string getPasskeyUsername()

Get the username for WebAuthn registration.

Used as the account identifier in authenticator UIs, typically rendered as the subtitle beneath the display name. Falls back from email to the auth identifier when the column is absent.

Return Value

string