keron-digital/auth-redis-storage-bundle
A Symfony bundle that stores authentication data in Redis, enabling fast, scalable session and token persistence across distributed, multi-server applications. Ideal for high-traffic setups needing shared auth state.
SETEX doing the expiry bookkeeping for you. For most teams this is a buy/adopt rather than build: writing a correct blacklist with TTL semantics, key namespacing, and user-ID association is a week of work plus forever of edge cases.TokenBlacklistInterface/RedisActiveTokenStorage), not a Laravel package. There is no Laravel service provider, no config/auth.php integration, no facade, no queue/Redis-connection abstraction aligned with Laravel's Redis facade. If this assessment was requested under the assumption this is a Laravel package, that assumption is wrong and the roadmap impact on a Laravel codebase is zero without an adapter layer. Do not put this on a Laravel sprint until someone confirms the target framework.Adopt it when:
Look elsewhere when:
SETEX is ephemeral by design. If compliance requires a durable record of revocations, blacklist entries vanishing at TTL is a feature here, not a bug — but it is the wrong tool for an audit trail.For executives (30 seconds): This is a small, focused, first-stable-release component that lets users and administrators reliably end a session — logout everywhere, revoke a compromised token, force re-authentication after a password change. It is infrastructure, not a product feature, and its value is risk reduction: it closes a common and easily-exploited gap in token-based auth, where a "logged out" token remains technically usable until it expires. Integration cost is low and it comes with a credible test and quality toolchain. One caveat that matters commercially: despite being scoped to us as a Laravel package, this is a Symfony bundle. If our stack is Laravel, this does not apply to us as-is and should not enter a Laravel roadmap without an adapter — I'd want that resolved before we spend further evaluation time.
For engineering (technical summary): v1.0.0, first stable. Two contracts and two Redis implementations: TokenBlacklistInterface/RedisTokenBlacklist for explicit invalidation of token identifiers before natural expiry, and ActiveTokenStorageInterface/RedisActiveTokenStorage for marking identifiers active for their intended lifetime with optional user-ID association and a "should this still be considered valid" check. Both use Redis SETEX, so expiry and cleanup are delegated to Redis — no reaper process. Configurable global key prefix plus per-concern suffixes for shared-Redis collision safety. DDD-shaped: Domain interfaces, Infrastructure implementations — the backend is replaceable. Symfony DI and config integration, Flex recipe provided. Ships with unit and integration tests, PHPStan, PHP CS Fixer, PHPMD, PCOV coverage, and a Docker dev environment.
Engineering caveats to air now, not later: (1) Framework mismatch — Symfony bundle, not Laravel; confirm target stack. (2) Redis is on the auth hot path — decide the degraded-mode behavior when Redis is unavailable, because the default is fail-closed and you need to agree that's intended. (3) Ephemeral by design — TTL expiry means no durable revocation audit; if compliance asks for one, that is a separate store. (4) Maturity — v1.0.0 with no production track record; recommend a bake period on a non-primary auth path before it guards anything critical. (5) Scope — this manages token state only; it does not issue or cryptographically verify tokens, so budget for the issuer/verifier alongside it.
How can I help you explore Laravel packages today?