Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Carbon not accepting string values #272

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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