Releases: stechstudio/laravel-jwt
Releases · stechstudio/laravel-jwt
v2.3
v2.2.1
v2.2.0
v2.1.0
v2.0.0
Version 2 of this package has been heavily reworked to support the latest lcobucci/jwt
library.
Changes
- BREAKING: The minimum length for signing keys is now 32 bytes.
- BREAKING: Exceptions have changed, see the extensions directory for the exceptions you should expect to see thrown for various token validation failures.
- BREAKING: The fluid method names have almost all changed. Rather than provide our own method names, we pass through to the underlying Builder class. So instead of the old
setAudience
you would use now useintendedFor
. - We still have three additional fluent builder methods:
signWith(string $key)
,lifetime(int $seconds)
, andwithClaims(array $claims)
. - You can call
$token->validate('expected-id')
to get an individual exception for the first encountered validation failure, or you can call$token->validateAll('expected-id')
to receive aRequiredConstraintsViolated
exceptions with an array ofConstraintViolation
exceptions, if you prefer.
Laravel 10 support
This is likely the last 1.x release.
Version 2 will be coming soon, refactored for the newer lcobucci/jwt
v4 API.