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

Webauthn Laravel Package

laragear/webauthn

Laravel package to authenticate users with WebAuthn passkeys (biometrics, device keys). Provides request validation and login flow with attestation/assertion support, compatible with Octane. Note: superseded by laravel/passkeys and unmaintained.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Passwordless Authentication Roadmap: Accelerates adoption of FIDO2/WebAuthn (Passkeys) as a core authentication method, aligning with industry trends (e.g., Google, Apple, Microsoft) and regulatory shifts (e.g., GDPR, password bans in EU). Reduces reliance on passwords, improving security and UX.
  • Build vs. Buy: Buy—avoids reinventing WebAuthn from scratch. Laravel’s official laravel/passkeys (now superseding this package) is the preferred choice, but this package offers a proven alternative for teams needing immediate implementation or customization before migrating.
  • Use Cases:
    • Consumer Apps: Replace passwords with biometrics/PINs (e.g., mobile apps, SaaS dashboards).
    • Enterprise SSO: Integrate with existing Laravel auth (e.g., B2B portals, internal tools).
    • Compliance: Meet NIST 800-63B or FIDO2 requirements for government/finance sectors.
    • Progressive Enhancement: Offer Passkeys as an optional login method alongside passwords (via password_fallback).

When to Consider This Package

Adopt if:

  • Your team uses Laravel 12+ and needs quick WebAuthn integration without deep cryptography expertise.
  • You prioritize developer velocity over cutting-edge features (e.g., prefer a stable, documented solution over experimental libraries).
  • Your app targets modern browsers/devices (WebAuthn support is ~90%+ in Chrome/Firefox/Safari).
  • You need seamless password fallback (e.g., hybrid auth for legacy users).

Look elsewhere if:

  • You’re on Laravel 11 or below (requires 12+).
  • You need official Laravel support → Use laravel/passkeys (active maintenance).
  • Your use case demands custom cryptography (e.g., non-OpenSSL/Sodium backends).
  • You require advanced features like:
    • Cross-platform sync (e.g., iCloud Keychain, Windows Hello).
    • Multi-factor WebAuthn (e.g., combining with TOTP/SMS).
    • Non-web clients (e.g., mobile apps needing platform-specific integrations).
  • Your team lacks PHP 8.3+ or OpenSSL/Sodium (critical dependencies).

How to Pitch It (Stakeholders)

For Executives:

"This package lets us replace passwords with Passkeys—secure, phishing-resistant logins using biometrics, hardware keys, or PINs—without rewriting our auth system. It’s battle-tested (400+ stars), integrates with Laravel’s existing ecosystem, and future-proofs us against password bans. ROI: Reduces support costs (fewer password resets), improves conversion (faster logins), and meets compliance needs. Risk: Minimal—falls back to passwords if needed, and we can migrate to Laravel’s official passkeys package later."

For Engineering:

*"Pros:

  • Drop-in Laravel auth: Extends Eloquent users with WebAuthn via a single config change (eloquent-webauthn driver).
  • Batteries-included: Handles attestation (key registration) and assertion (login) with typed HTTP requests.
  • Flexible: Supports resident keys (one-tap login), user verification policies, and custom credential storage.
  • Performance: Optimized for Laravel Octane (async support).

Cons:

  • Archived: Not actively maintained (but stable; superseded by laravel/passkeys).
  • Dependencies: Requires PHP 8.3+ and OpenSSL (Sodium optional).

Recommendation: Use this for MVP deployment, then migrate to laravel/passkeys when ready. Effort: ~2 days to integrate (install, routes, JS helper)."*

For Security/Compliance:

*"Why Passkeys?

  • No passwords: Eliminates credential stuffing, phishing, and breaches.
  • Device-bound: Private keys never leave the user’s device.
  • FIDO2 compliant: Meets NIST SP 800-63B and W3C WebAuthn standards.

Tradeoffs:

  • Browser/device dependency: Requires modern OS/browser support.
  • User education: Some users may need guidance on biometric/PIN setup.

Mitigation: Offer password fallback during transition and monitor adoption metrics."*

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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky