All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
You can find and compare releases at the GitHub release page.
- Fixed the return type of getMinutesUntilExpired in BlackList, which returned a float instead of an int when using Carbon v2.
Please see (https://github.com/PHP-Open-Source-Saver/jwt-auth/releases/tag/2.8.0)
- Adds support for Laravel 12
- Adds CI testing for PHP 8.4
- Don't show jwt secret if show option is false even if the key is updated
- Casts config ints to int by default in new config file publishes
- Override "id" method in JWTGuard
- Dropping support for PHP 8.1, if you are still on this version, please update your PHP version in order to use the latest version of this package.
- Add
cookie_key_name
config to customize cookie name for authentication - Delegate
Auth::id()
calls to the newly addedgetUserId
method
- Support for Carbon 3 alongside Carbon 2
- New
getUserId
method
- Refresh iat claim when refreshing a token
- Support for lcobucci/jwt^5.0 (and dropped support for ^4.0)
- SetSecret regenerates config with new secret in the Lcobucci provider
- Support for Carbon 3 (and drop Carbon 1, but it was unused anyway)
- Dropped support for Laravel < 10 and PHP < 8.1
- Use
id
claim for identify user ifsub
doesn't exists.
- Different TTL configurations for each guard
- lcobucci/jwt: add array support for
aud
claim - Laravel 11 support
- Laravel 10 support
2.0.0 2022-09-08
- No changes to 2.0.0-RC1
- Arabic translation for docs by hawkiq
2.0.0-RC1 2022-08-25
- Adds Octane Compatibility
- Added
ask-passphrase
parameter to generating certs command - Support autocomplete guard
- Default config value for
show_black_list_exception
changed to true - Auth header not ignoring other auth schemes
- Fixed replacing of values using regex
1.4.2 2022-04-22
- Added exception if secret key or private/public key are missing
- Add command for generating certs
1.4.1 - 2022-01-24
- Add more ReturnTypeWillChange for PHP 8.1 compatibility
1.4.0 - 2022-01-18
- Fixes #101 - Secret is not nullable but should be according to the library config boilerplate
- Fixes #99 - Steps for migrating from tymons package
1.3.0 - 2022-01-13
- PHP 8.1 support (#58, #77, #87)
- Typed variables (#52)
- Compatability with Laravel 6 versions below 6.15
1.2.0 - 2021-11-16
- Dispatch Auth Events by @okaufmann in #45
1.1.1 - 2021-10-21
- Blacklisted token exception no more thrown by default by @Messhias in #32
- ECDSA signers by @josecl in #31
1.1.0 - 2021-11-11
- PHP 8.0 and
lcobucci/jwt
version 4 compatability by @eschricker in #14 - Option to hide Blacklisted Token exception by @Messhias in #7
- Throw exception for invalid encrypted cookies by @eschricker in #22
- Typo in tests by @eschricker in #23