Passkeys
class Passkeys
Constants
| DEFAULT_TIMEOUT |
|
| private DEFAULT_PASSKEY_MODEL |
|
| private DEFAULT_REGISTERS_ROUTES |
|
Methods
Get the relying party ID.
Register a callback to resolve the WebAuthn relying party ID for the current request.
Get the origins allowed to complete WebAuthn ceremonies.
Register a callback to resolve WebAuthn allowed origins for the current request.
Determine if allowed origins are currently resolved from request-aware state.
Get the WebAuthn timeout in milliseconds.
Get the passkey model class name.
Set the passkey model class name.
Register a callback to authorize passkey logins before login.
Determine if a passkey-verified user should be allowed to log in.
Register a callback to resolve the successful login redirect path.
Get the current authentication guard name.
Get the current stateful authentication guard.
Determine if Passkeys routes should be registered.
Configure Passkeys to not register its routes.
Get the path to the package's migrations.
Get the configured user handle secret.
Flush all static state.
Details
at line 45
static string
relyingPartyId()
Get the relying party ID.
at line 74
static void
resolveRelyingPartyIdUsing(callable|null $callback)
Register a callback to resolve the WebAuthn relying party ID for the current request.
Boot-only. The callback persists in static state for the worker lifetime and affects every subsequent WebAuthn ceremony.
at line 86
static array
allowedOrigins()
Get the origins allowed to complete WebAuthn ceremonies.
at line 118
static void
resolveAllowedOriginsUsing(callable|null $callback)
Register a callback to resolve WebAuthn allowed origins for the current request.
Boot-only. The callback persists in static state for the worker lifetime and affects every subsequent WebAuthn ceremony.
at line 128
static bool
hasRequestAwareAllowedOrigins()
Determine if allowed origins are currently resolved from request-aware state.
at line 139
static int
timeout()
Get the WebAuthn timeout in milliseconds.
at line 155
static string
passkeyModel()
Get the passkey model class name.
at line 167
static void
usePasskeyModel(string $model)
Set the passkey model class name.
Boot-only. The model class persists in static state for the worker lifetime and affects every subsequent passkey query.
at line 181
static void
authorizeLoginUsing(callable|null $callback)
Register a callback to authorize passkey logins before login.
Boot-only. The callback persists in static state for the worker lifetime and affects every subsequent passkey login.
at line 191
static bool
allowsLogin(Request $request, Passkey $passkey)
Determine if a passkey-verified user should be allowed to log in.
at line 213
static void
redirectUsing(callable|null $callback)
Register a callback to resolve the successful login redirect path.
Boot-only. The callback persists in static state for the worker lifetime and affects every subsequent successful passkey login response.
at line 223
static string
redirectTo(Request $request)
Resolve the successful login redirect path for this request.
at line 239
static string
guardName()
Get the current authentication guard name.
at line 249
static StatefulGuard
guard()
Get the current stateful authentication guard.
at line 265
static bool
shouldRegisterRoutes()
Determine if Passkeys routes should be registered.
at line 275
static void
ignoreRoutes()
Configure Passkeys to not register its routes.
Boot-only. The route registration flag persists in static state for the worker lifetime and affects route bootstrapping.
at line 283
static string
migrationPath()
Get the path to the package's migrations.
at line 291
static string
userHandleSecret()
Get the configured user handle secret.
at line 321
static void
flushState()
Flush all static state.