Skip to content

Commit

Permalink
Merge pull request #272 from mokhosh/fix-int-cast
Browse files Browse the repository at this point in the history
Fix Carbon not accepting string values
  • Loading branch information
Messhias authored Jan 2, 2025
2 parents 5dec649 + 3191460 commit 7f5bb61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ You can find and compare releases at the GitHub release page.

## [Unreleased]

### Added
### Fixed
- Fixes #259 - Can't logout with an expired token
- Fixed #271 - Changing JWT_TTL in .env doesn't work

### Added
- Add `cookie_key_name` config to customize cookie name for authentication

### Removed
Expand Down
8 changes: 4 additions & 4 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
|
*/

'ttl' => env('JWT_TTL', 60),
'ttl' => (int) env('JWT_TTL', 60),

/*
|--------------------------------------------------------------------------
Expand All @@ -108,7 +108,7 @@
|
*/

'refresh_ttl' => env('JWT_REFRESH_TTL', 20160),
'refresh_ttl' => (int) env('JWT_REFRESH_TTL', 20160),

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -196,7 +196,7 @@
|
*/

'leeway' => env('JWT_LEEWAY', 0),
'leeway' => (int) env('JWT_LEEWAY', 0),

/*
|--------------------------------------------------------------------------
Expand All @@ -223,7 +223,7 @@
|
*/

'blacklist_grace_period' => env('JWT_BLACKLIST_GRACE_PERIOD', 0),
'blacklist_grace_period' => (int) env('JWT_BLACKLIST_GRACE_PERIOD', 0),

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 7f5bb61

Please sign in to comment.