Skip to content

Commit 0fbd40d

Browse files
committed
refactor
1 parent ad675bb commit 0fbd40d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Auth.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ private function refresh_token($user) {
4444
'HS512'
4545
);
4646
// number of mili seconds
47-
$token_duration = intval($env['refresh_token_duration']) * 1000;
48-
setcookie($env['refresh_cookie'], $refresh_token, time()+$token_duration, "/", $env['domain'], 0, 1);
47+
$token_duration = time() + (intval($env['refresh_token_duration']) * 1000);
48+
setcookie($env['refresh_cookie'], $refresh_token, $token_duration, "/", $env['domain'], 0, 1);
4949
}
5050

5151
private function generate_access_token($user) {

0 commit comments

Comments
 (0)