Páginas · Laravilt
Passkeys (WebAuthn)
Biometric authentication with fingerprint, Face ID, and security keys
Passwordless authentication using biometrics (fingerprint, Face ID) or hardware security keys.
Enable in Panel
php
Requirements
- HTTPS required (except localhost)
- Browser support for WebAuthn
- Laravel package:
laragear/webauthn
Installation
bash
User Model Setup
php
Configuration
php
Profile Integration
Enable passkey management in user profile:
php
Passkey Registration
Users can register passkeys from their profile:
php
Passwordless Login
Enable login with passkey only (no password):
php
Customizing Passkey Pages
Registration
php
Authentication
php
Passkey Management
Users can manage their passkeys:
php
Security Considerations
- HTTPS Required - WebAuthn only works over HTTPS (except localhost)
- Credential Storage - Public keys stored in database, private keys never leave user's device
- User Verification - Configure based on security requirements
- Attestation - Set to 'none' for privacy, 'direct' for enterprise
Fallback Authentication
If passkey fails, allow fallback to password:
php
API Reference
Panel Methods
| Method | Parameters | Description |
|---|---|---|
passkeys() | — | Enable passkey auth |
passwordlessLogin() | — | Allow passkey-only login |
allowPasswordFallback() | — | Allow password if passkey fails |
User Methods
| Method | Parameters | Description |
|---|---|---|
webAuthnCredentials() | — | Get passkey credentials |
hasPasskeys() | — | Check if has passkeys |
registerPasskey() | array $data | Register new passkey |
deletePasskey() | string $id | Delete passkey |