Skip to content

Commit 2c1fb31

Browse files
committed
DP-100 Increase session time to 1 day
- Change JWT TTL from 60 minutes to 1440 minutes (24 hours)
1 parent 557c77c commit 2c1fb31

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.env-dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ APP_KEY=
197197
## JSON Web Token session management, encryption secret, defaults to APP_KEY value
198198
#JWT_SECRET=
199199
## JWT time to live in minutes
200-
#DF_JWT_TTL=60
200+
#DF_JWT_TTL=1440
201201
## Refresh time to live in minutes, defaults to 2 weeks
202202
#DF_JWT_REFRESH_TTL=20160
203203
## Allow sessions to be refreshable forever, true or false

config/jwt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
|
9292
*/
9393

94-
'ttl' => env('DF_JWT_TTL', 60),
94+
'ttl' => env('DF_JWT_TTL', 1440),
9595

9696
/*
9797
|--------------------------------------------------------------------------

installer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ declare -A settings=(
133133
["DF_CONFIRM_CODE_LENGTH"]="32"
134134
["DF_CONFIRM_CODE_TTL"]="1440"
135135
["JWT_SECRET"]=""
136-
["DF_JWT_TTL"]="60"
136+
["DF_JWT_TTL"]="1440"
137137
["DF_JWT_REFRESH_TTL"]="20160"
138138
["DF_ALLOW_FOREVER_SESSIONS"]="false"
139139
["DF_CONFIRM_RESET_URL"]="'/dreamfactory/dist/#/reset-password'"

0 commit comments

Comments
 (0)