Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Passkeys Laravel Package

spatie/laravel-passkeys

Add passkey (WebAuthn) login to Laravel without passwords. Includes Livewire components to register/generate passkeys and a Blade component to authenticate users using device-stored credentials (1Password, macOS Keychain, etc.).

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Passwordless Authentication Roadmap: Accelerates the shift from traditional passwords to FIDO2/WebAuthn passkeys, aligning with industry trends (e.g., Google, Apple, Microsoft) and reducing friction for users.
  • Security & Compliance: Enables MFA-compliant authentication (NIST 800-63B) without relying on SMS/email-based 2FA, mitigating phishing risks.
  • Build vs. Buy: Buy—avoids reinventing WebAuthn complexity while leveraging Spatie’s battle-tested Laravel integration (Livewire/Blade components, event-driven architecture).
  • Use Cases:
    • Consumer Apps: Replace passwords with passkeys for seamless onboarding (e.g., SaaS platforms, e-commerce).
    • Enterprise SSO: Integrate with existing Laravel auth systems (e.g., Sanctum, Jetstream) for hybrid password/passkey flows.
    • Regulatory Compliance: Meet GDPR/CCPA requirements by eliminating password storage (passkeys are device-bound, not server-stored).
    • Progressive Rollout: Use events (PasskeyRegisteredEvent) to trigger analytics or workflows (e.g., welcome emails, tiered access).

When to Consider This Package

  • Adopt if:

    • Your Laravel app targets modern browsers (Chrome 89+, Edge 89+, Safari 15.4+) and supports Livewire (required for passkey generation).
    • You prioritize user experience (reduced password fatigue) and security (phishing-resistant authentication).
    • Your team lacks WebAuthn expertise but needs a production-ready solution with 10+ translations and event hooks.
    • You’re building for global audiences (supports Arabic, Chinese, Turkish, etc.) or need multi-factor flexibility (e.g., "remember me" option).
  • Look elsewhere if:

    • You need legacy browser support (e.g., IE11, older Safari).
    • Your stack doesn’t use Laravel/Livewire (e.g., React/Vue frontend with a custom backend).
    • You require advanced passkey management (e.g., enterprise-grade recovery flows) beyond Spatie’s scope—consider custom WebAuthn libraries (e.g., webauthn-lib directly).
    • Your compliance needs mandate password fallback (this package supports hybrid flows but isn’t a replacement for legacy auth systems).

How to Pitch It (Stakeholders)

For Executives: "This package lets us eliminate passwords—a top security and UX priority—by integrating passkeys into our Laravel app with minimal dev effort. Spatie’s solution is production-ready, used by 400+ repos, and aligns with Apple/Google’s push for passwordless auth. It reduces support costs (fewer password resets) and strengthens security (phishing-proof logins). We can phase it in alongside existing auth, with analytics hooks to measure adoption."

For Engineering: *"Spatie’s laravel-passkeys gives us pre-built Livewire/Blade components for passkey registration/login, handling all WebAuthn complexity under the hood. Key benefits:

  • Zero WebAuthn boilerplate: Uses webauthn-lib internally, with Laravel-friendly abstractions.
  • Extensible: Supports events (e.g., PasskeyRegisteredEvent), customizable options (e.g., allowedOrigins), and multi-language UI.
  • Future-proof: Actively maintained (recent 1.8.0 release), with Laravel 13 support and fixes for WebAuthn library updates.
  • Hybrid auth: Works alongside Sanctum/Jetstream for gradual rollout (e.g., ‘Use passkey or enter password’). Tradeoff: Requires Livewire, but we can scope this to high-value flows (e.g., admin dashboards) first."*

For Security/Compliance: *"Passkeys replace passwords with cryptographic proofs tied to hardware/biometrics, eliminating:

  • Credential stuffing (no passwords stored).
  • Phishing (device-bound challenges).
  • Password sprawl (users reuse fewer credentials). The package complements our existing auth via events (e.g., audit logs for passkey registrations) and supports FIDO2 standards, aligning with NIST SP 800-63B Level 3 requirements."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope