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

Jwt Auth Guard Laravel Package

irazasyed/jwt-auth-guard

A JWT authentication guard for Laravel and Lumen that issues, verifies, and refreshes JSON Web Tokens as a drop-in replacement for session-based guards, with support for custom claims and multiple auth drivers.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • API authentication strategy: Supports a decision to add stateless JWT auth to a Laravel API, especially where token-based access is preferred over session cookies.
  • Build vs. buy: Provides a buy/reuse option for a Laravel-native auth guard instead of building token issuance, parsing, validation, refresh, and blacklisting from scratch.
  • Roadmap scoping: Helps estimate effort for API/mobile/partner-access features such as login-token endpoints, token lifetime policy, custom claims, and middleware-protected routes.
  • Use cases: Best suited for legacy Laravel apps, internal APIs, prototypes, and proof-of-concept work that need JWT auth quickly with Laravel’s existing auth and middleware patterns.
  • Security/product policy: Forces explicit decisions on token lifetime, refresh-token behavior, blacklisting/revocation, custom claims, and stateless-vs-stateful auth tradeoffs.
  • Migration planning: Can act as a reference implementation when evaluating a move to Laravel Sanctum, Passport, or a more actively maintained JWT package.

When to Consider This Package

  • Consider it only when the product runs on a compatible legacy Laravel version and the team needs a quick JWT auth guard with Laravel-native middleware integration.
  • Consider it for internal tools, prototypes, or time-boxed legacy work where the team accepts ownership of security review, dependency auditing, and possible forking.
  • Consider it when requirements explicitly call for JWT issuance, validation, refresh tokens, blacklisting, custom claims, and configurable token lifetime in a simple Laravel auth guard.
  • Look elsewhere for new products, current Laravel versions, long-term roadmap dependencies, compliance-sensitive systems, or high-scale public APIs.
  • Look elsewhere if the team needs active maintenance, security patches, modern documentation, OAuth2/SSO, mature refresh-token rotation, or broad community support.
  • Prefer Laravel Sanctum for first-party SPA/mobile tokens, Laravel Passport for OAuth2, tymon/jwt-auth for a maintained Laravel JWT option, or firebase/php-jwt for a minimal custom implementation. The 2016 last release and low opportunity score are material adoption risks.

How to Pitch It (Stakeholders)

  • Executive summary: This is an MIT-licensed Laravel package that can accelerate JWT-based API authentication in legacy or proof-of-concept work, but it is not a strategic long-term dependency. Last release in 2016 and a low opportunity score mean adoption should be treated as a stopgap or reference implementation, not a default platform choice.
  • Product value: Faster time to market for token-based API access, less custom auth code, and alignment with Laravel’s auth guard and middleware model.
  • Engineering message: Use only after a compatibility and security audit; budget for dependency ownership, patching, or replacement. Validate token lifecycle, refresh, blacklisting, custom claims, and upgrade paths before committing.
  • Recommendation: Run a narrow spike or legacy-only evaluation. If it passes security and compatibility review, use it behind an exit plan; otherwise standardize on Sanctum, Passport, or an actively maintained JWT solution.
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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console