stechstudio/laravel-jwt
JWT authentication for Laravel: issue and validate JSON Web Tokens, authenticate API requests with middleware, and configure custom claims and token lifetimes. A lightweight package for securing Laravel APIs without sessions.
ParsedToken, and exception classes. Version 3.0 aligns with modern Laravel and PHP runtimes, so architectural fit is strong for services already on PHP 8.2+ and Laravel 11+. The unchanged public API means existing application integration points should remain stable.ParsedToken methods, and exception classes are unchanged. The main integration effort is upgrading PHP, Laravel, and lcobucci/jwt v5. Teams that reference lcobucci/jwt classes directly must review the v5 upgrade guide. The signer-validation bug fix is operationally valuable for RSA and other non-HMAC algorithms.lcobucci/jwt v4 classes is the most likely source of breakage. The signer-validation fix changes behavior for non-HMAC tokens: this is correct, but it may surface previously hidden misconfigurations. Laravel 13 support is forward-looking and may not be relevant to all environments yet. CI and PHPUnit changes affect package maintainers more than consumers.lcobucci/jwt v4 classes? Are RSA, ECDSA, or other non-HMAC signers used in production? Is config('jwt.signer') consistently set per environment? Do regression tests cover token issuance, validation, middleware, request macros, and exception paths for each configured signer? What is the support plan for applications still on Laravel 8–10 or PHP 8.1?lcobucci/jwt to v5. If direct JWT library usage exists, follow the v5 upgrade guide and update imports, types, and exception handling. Verify config('jwt.signer') in every environment. Run regression tests for login, token issuance, middleware enforcement, request macros, refresh/validate flows, and exception handling. Because the public package API is unchanged, application-level changes should be limited.lcobucci/clock as an explicit dependency. Laravel 13 support improves forward compatibility. PHPUnit 11 affects package development, not runtime consumers. Dependency resolution must allow lcobucci/jwt v5 alongside other packages in the application.lcobucci/jwt; validate signer configuration per environment; test both HMAC and non-HMAC token paths; deploy to staging; monitor authentication failures; then roll out production. For multi-service environments, coordinate shared JWT contracts, keys, and signer settings before package rollout.lcobucci/clock dependency reduces transitive dependency surprises. GitHub Actions and PHPUnit 11 modernize maintainer workflows. Laravel 13 support reduces future upgrade pressure. However, this is a major version, so it should be handled as a planned platform upgrade rather than a routine patch.lcobucci/jwt v5. Teams supporting older Laravel versions need either parallel support or a clear upgrade path. Runbooks should document signer configuration and token-validation expectations, especially for RSA and other asymmetric algorithms.lcobucci/jwt v5 incompatibility can cause class or API errors. Misconfigured signers can cause authentication failures or security gaps. The signer-validation fix may change behavior for non-HMAC tokens, exposing latent misconfigurations or allowing previously failing valid tokens to pass. CI and PHPUnit changes are not production-facing.How can I help you explore Laravel packages today?