Skip to content

Commit 7f5bb61

Browse files
authored
Merge pull request #272 from mokhosh/fix-int-cast
Fix Carbon not accepting string values
2 parents 5dec649 + 3191460 commit 7f5bb61

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ You can find and compare releases at the GitHub release page.
88

99
## [Unreleased]
1010

11-
### Added
11+
### Fixed
1212
- Fixes #259 - Can't logout with an expired token
13+
- Fixed #271 - Changing JWT_TTL in .env doesn't work
14+
15+
### Added
1316
- Add `cookie_key_name` config to customize cookie name for authentication
1417

1518
### Removed

config/config.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
|
9090
*/
9191

92-
'ttl' => env('JWT_TTL', 60),
92+
'ttl' => (int) env('JWT_TTL', 60),
9393

9494
/*
9595
|--------------------------------------------------------------------------
@@ -108,7 +108,7 @@
108108
|
109109
*/
110110

111-
'refresh_ttl' => env('JWT_REFRESH_TTL', 20160),
111+
'refresh_ttl' => (int) env('JWT_REFRESH_TTL', 20160),
112112

113113
/*
114114
|--------------------------------------------------------------------------
@@ -196,7 +196,7 @@
196196
|
197197
*/
198198

199-
'leeway' => env('JWT_LEEWAY', 0),
199+
'leeway' => (int) env('JWT_LEEWAY', 0),
200200

201201
/*
202202
|--------------------------------------------------------------------------
@@ -223,7 +223,7 @@
223223
|
224224
*/
225225

226-
'blacklist_grace_period' => env('JWT_BLACKLIST_GRACE_PERIOD', 0),
226+
'blacklist_grace_period' => (int) env('JWT_BLACKLIST_GRACE_PERIOD', 0),
227227

228228
/*
229229
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)