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 Jwt Redis Laravel Package

chantouch/laravel-jwt-redis

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Authentication architecture (build vs. buy): Supports the decision to keep API auth stateless via JWT while using Redis as the shared store for token state — refresh tokens, revocation/blacklist, and (depending on config) per-request token lookups. This is the core trade-off versus session cookies or Laravel Sanctum's token model.
  • Feature scope for token lifecycle: Informs whether to ship "log out everywhere," forced re-auth on password change, refresh-token rotation, and short-lived access tokens with silent refresh. These are the user-facing features this package most directly enables.
  • Roadmap sequencing: Redis-backed JWT revocation is effectively a prerequisite for any multi-device session management, admin "revoke user access" controls, or security-sensitive flows (e.g., changing email/password invalidates outstanding tokens). This package lets those land earlier rather than as a custom build.
  • Infrastructure dependency decision: Adopting it commits the product to Redis as a hard runtime dependency for authentication. That is a meaningful operational and cost decision (managed Redis, HA, failover behavior) and should be evaluated as an architecture choice, not just a library choice.
  • Risk/ownership posture: The v3.2.1 patch (correcting return types on refreshable middleware) is a small, low-risk correctness fix with no breaking changes — it signals the package is maintained but also that its middleware surface is still being tightened. Factor that into the "buy" side of the ledger: low integration cost, but you are depending on a small, single-maintainer project.

When to Consider This Package

Adopt when most of the following hold:

  • You need JWT-based, stateless API auth and want server-side revocation — i.e., tokens must be invalidatable before expiry.
  • Redis is already in your stack (cache, queues, sessions), so the added dependency is marginal.
  • You are on a Laravel version this package supports, and its JWT implementation aligns with what your clients expect (bearer tokens, refresh endpoint).
  • Your team is small and you would rather integrate than hand-roll token blacklisting, refresh rotation, and middleware glue.
  • You can tolerate a single-maintainer dependency and are willing to pin versions and monitor releases.

Look elsewhere when:

  • You need OAuth2 / scopes / third-party authorization — Laravel Passport is the better fit.
  • You only need first-party SPA or mobile tokens without revocation semantics — Sanctum is simpler and removes Redis from the auth critical path.
  • You want a large, actively-audited auth ecosystem — tymon/jwt-auth (or Laravel's first-party options) has more community surface, though the maintenance status of JWT packages generally warrants a check before committing.
  • Redis availability cannot be a hard dependency for login/token validation — a Redis outage becomes an auth outage, which is a significant product risk.
  • You require vendor support or a security review trail; this project does not appear to offer either.

How to Pitch It (Stakeholders)

For executives: This is a small open-source Laravel component that gives our API secure, revocable login tokens backed by Redis. It lets us deliver "log out of all devices," immediate access revocation, and short-lived tokens without building that machinery ourselves — weeks of work avoided at near-zero licensing cost. The trade-off is a hard dependency on Redis and reliance on a small maintainer, so we should pin the version and keep an exit path.

For engineering: chantouchsek/laravel-jwtredis handles JWT issuance/validation with Redis as the store for token state, including refresh and invalidation. The latest release, v3.2.1, is a patch that corrects return types on the refreshable middleware — no breaking changes, no migration needed, safe to bump. Before adopting, confirm supported Laravel/PHP versions, Redis failover behavior for the auth path, and whether we accept single-maintainer risk; if revocation isn't actually required, Sanctum is the lighter option.

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.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib