laravel/passkeys
Add passwordless WebAuthn/passkey authentication to Laravel. Install migrations, add a trait/contract to your User model, and use the @laravel/passkeys JS client for registration and login. Includes built-in routes for login, confirmation, and passkey management.
@laravel/passkeys) ensures frontend consistency, while the event system (PasskeyRegistered, PasskeyVerified) enables seamless integration with analytics (e.g., Mixpanel) or audit logs.password.confirm) secures admin panels without shared credentials.name/email) improve UX for non-English users (e.g., Chinese username conventions).Adopt This Package If:
PasskeyDeleted).throttle:6,1) to prevent brute-force attacks on passkey endpoints.Look Elsewhere If:
laravel-2fa.BEGIN TRANSACTION support)."This isn’t just another auth feature—it’s a security moat that cuts fraud and support costs while future-proofing your product. Here’s the business case:
PasskeyVerified).Ask: ‘Which customer segment should we prioritize for passkey rollout?’ (e.g., high-value users first)."
"This solves three critical pain points with minimal risk:
PasskeyAuthenticatable) replaces remember_token logic in one line./passkeys/login, /user/passkeys) reduce boilerplate by 80%.management_middleware: ['role:admin']) for granular access control.PasskeyDeleted) for real-time monitoring (e.g., Slack alerts).CustomRegistrationOptions) to enforce platform-only authenticators (Touch ID).Trade-offs:
@laravel/passkeys npm package (but no backend changes).Next Steps:
PasskeyVerified events for failure rates (aim for <5%).Ask: ‘Should we pair this with session management (e.g., longer sessions for passkey users)?’"*
"This package hardens your auth stack while reducing attack surfaces:
PasskeyRegistered, PasskeyDeleted) integrate with SIEM tools (e.g., Splunk).throttle:6,1) mitigates brute-force attacks.Red Flags to Watch:
PasskeyVerified failures).PasskeyUser contract compliance.Ask: ‘Should we rate-limit passkey registrations per IP to prevent sybil attacks?’"*
How can I help you explore Laravel packages today?