Weave 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 Auth Laravel Package

joe-404/laravel-auth

Drop-in, config-driven authentication for Laravel 12 and 13: OTP and magic-link verification, login, token refresh, password reset, multi-session management, Google OAuth, API tokens, account status workflow, and referral codes via a uniform JSON API.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy on the auth surface area. The package bundles roughly 40 endpoints across registration, OTP/magic-link verification, refresh-token rotation with reuse detection, session and device management, Google OAuth, API tokens, account-status workflows, and referrals. A PM can use this as the "buy" column of a build-vs-buy estimate: comparable in-house scope is realistically 4–8 engineer-weeks including tests, plus ongoing maintenance. That number — not the feature list — is the decision input.
  • Roadmap sequencing for security features. 2FA (TOTP/email/SMS), trusted devices, and step-up auth are usually deferred because they are expensive. If the package genuinely delivers them, "add 2FA in v1" becomes a cheap roadmap move rather than a quarter-long project. Use it to re-litigate deferrals.
  • Platform/API strategy. One uniform JSON envelope across REST, SPA cookie sessions, and mobile Bearer tokens is a real product decision: it lets a single client contract serve web, iOS, Android, and partner integrations instead of three auth implementations.
  • Trust & safety and compliance scoping. Account suspension/ban/deactivation with a status audit log, permanent device history, and referral anti-abuse fingerprinting map directly to moderation, fraud, and abuse-handling requirements that often get discovered late and blow up a launch date.
  • What it does not justify deciding. It does not de-risk authentication — it transfers risk to a dependency. Do not use it to conclude "auth is solved." The adoption decision and the fork-and-own decision are the same decision; treat them as one.
  • Buy-vs-build exit criteria. It gives you a concrete artifact to evaluate against: read the source, count what you'd actually use, and price the remainder. If you'd use fewer than ~5–6 of the flows, the bundle premium (extra attack surface, extra upgrade conflicts) exceeds the savings.

When to Consider This Package

Reasonable to evaluate when:

  • Greenfield Laravel 12/13 project, API-first, no existing auth code to migrate.
  • Time-to-market dominates: MVP, internal tool, pilot, or a mobile-backend spike where a week of auth plumbing is the critical path.
  • The team has real Laravel depth and is willing to fork and own the code rather than consume it as a versioned dependency.
  • You need a large share of the bundle (OTP + magic link + refresh rotation + sessions/devices + OAuth + API tokens) — not just login and password reset.
  • Redis is already in the stack; the recommended storage for OTP, refresh tokens, and rate limiting is a stated prerequisite.
  • You can pin an exact version, wrap the endpoints in your own contract tests, and keep a rollback path.

Look elsewhere when:

  • Auth is a core differentiator or a regulated control (fintech, health, anything under SOC 2 / HIPAA / PCI, or with enterprise security review). Adoption evidence is essentially absent: 2 stars, 0 dependents, single maintainer, and the README itself says "still under active testing… use with caution in production." There is no visible security-disclosure process, no CVE track record, and no longevity signal.
  • You need vendor accountability. No SLA, no support contract, bus factor of one. A breaking change or an unpatched auth vulnerability is a you-problem.
  • You need enterprise identity: SAML, OIDC, SCIM provisioning, per-organization MFA policy, or passkeys/WebAuthn. None of these appear in the feature set; WebAuthn in particular is conspicuous by its absence in a 2026 auth package.
  • Version claims don't verify. Treat "Laravel 13," "Sanctum 4," and a v2.6 feature set on a package labelled BETA as claims to validate in a spike, not facts. The installer auto-pulling Socialite and Spatie Permission into your dependency graph is a version-conflict and supply-chain consideration in its own right.
  • You already have partial auth. Migration cost plus the fork burden usually exceeds finishing what exists.
  • You need multi-major upgrade guarantees. Nothing here indicates a support policy across Laravel majors; the fork becomes your maintenance plan by default.

How to Pitch It (Stakeholders)

One-line framing: "A zero-cost accelerator that we adopt as a fork, not as a dependency — worth a one-week spike, not a place on the launch critical path."

For executives: This is an MIT-licensed package that covers roughly 4–8 engineer-weeks of auth work — registration with OTP and magic links, token rotation, session/device tracking, 2FA, Google sign-in, account suspension workflows, and referral abuse detection. The trade-off is concentration risk: it is a beta, single-maintainer project with almost no adoption (2 stars, 0 dependents), and auth is the highest-blast-radius component in the product. Recommendation: fund a short evaluation, and if it passes, vendor the source into our repo so we control patches. Do not represent this as "auth is done"; represent it as "auth plumbing is done, ownership is ours."

For engineering: Scope the spike explicitly — install in a throwaway branch, exercise registration → verify → complete → login → refresh → logout, plus one 2FA enrollment and one admin status change. Validate every version claim in the README against our actual Laravel/PHP/Sanctum/Spatie matrix. Audit the installer (what it publishes, what it auto-requires, what it writes to config/), review the refresh-token reuse-detection logic and rate-limit storage, and check how the routes and middleware interact with our existing guards. Deliverable: a decision memo with a fork plan, a diff of what we'd delete, and an estimate to own it.

For security/review: Flag the beta notice, the single-maintainer risk, and the absence of a disclosure policy up front. Ask for a code review of OTP generation, token storage/hashing, magic-link signing, and rate-limit bypass paths before any customer data touches it.

Recommended call: Approve a 1-week spike. Pre-commit to the fork if it passes. Do not adopt it for the flagship product's GA without that fork, a security review, and a named internal owner.

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.
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk