PasskeyAuthenticatable
trait PasskeyAuthenticatable
Traits
Methods
Boot the passkey authenticatable trait for a model.
Determine if the user has any passkeys enabled.
Get the display name for WebAuthn registration.
Details
in
PasskeyAuthenticatable at line 19
static void
bootPasskeyAuthenticatable()
Boot the passkey authenticatable trait for a model.
in
PasskeyAuthenticatable at line 36
MorphMany
passkeys()
Get the passkeys associated with the user.
in
PasskeyAuthenticatable at line 44
bool
hasPasskeysEnabled()
Determine if the user has any passkeys enabled.
in
PasskeyAuthenticatable at line 54
string
getPasskeyUserHandle()
Get the unique user handle for WebAuthn.
This should be a stable identifier that does not reveal PII.
in
PasskeyAuthenticatable 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.
in
PasskeyAuthenticatable 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.