north69/lexik-jose-bridge
A bridge integrating Lexik JWT authentication with JOSE-based token handling, letting PHP applications sign, verify, and manage JSON Web Tokens through a clean, interoperable layer built on standard JOSE libraries.
namshi/jose) in favor of web-token/jwt-framework without rewriting the authentication layer. This is a "close a CVE/abandoned-dependency finding on a deadline" decision, not a feature decision.LexikJWTAuthenticationBundle major version and a full bundle upgrade is blocked by other constraints (Symfony version, custom authenticators, deadline), this bridge is the cheap intermediate step that decouples "get off the abandoned crypto library" from "upgrade the auth bundle."web-token/jwt-framework unlocks newer signing algorithms (EdDSA, PS256/384/512) and key-management tooling. That supports product-level decisions like multi-tenant key rotation, per-client signing keys, or compliance asks that the legacy library can't satisfy.tymon/jwt-auth, Sanctum, or Passport instead. A PM decision to "use this in Laravel" is a category error worth catching early.Adopt only when all of the following hold:
LexikJWTAuthenticationBundle on a version that still resolves the legacy JOSE library, and you have a concrete reason to move to web-token/jwt-framework (security finding, PHP-version blocker, algorithm requirement).lexik/jwt-authentication-bundle itself to a release that natively uses web-token is not achievable inside the current window — due to Symfony version, custom guards/authenticators, or a hard release freeze.Look elsewhere when:
For executives (one paragraph): We have a security exposure in our authentication stack because one of our JWT libraries is no longer maintained. There are two fixes: a full upgrade of the authentication bundle, which touches login for every API client and needs a regression window, or a small adapter that swaps only the crypto library underneath. This package is the adapter. It is a tactical, low-cost way to close the finding this quarter while we schedule the proper upgrade — not a long-term dependency. Because it is a very small, low-adoption open-source project, we would pin the version and be prepared to maintain our own copy if needed; the code footprint is small enough that this is a low-cost insurance policy.
For engineering: Evaluate as a spike, not a commitment. Confirm it supports our exact Lexik and Symfony versions, run the existing auth test suite against it, pin the version in composer.json, and record an exit criterion — "remove once Lexik is upgraded to a release that uses web-token natively." Budget for reading the source (it is small) and for a fallback fork. Do not introduce it into any Laravel service; this is Symfony-only glue.
Bottom line for the roadmap: a narrow, disposable migration aid. Justify it on risk reduction and schedule, never on capability or ecosystem momentum — and pair the decision with a dated follow-up to remove it.
How can I help you explore Laravel packages today?