Skip to content

Commit

Permalink
changed jwt token expiration time
Browse files Browse the repository at this point in the history
  • Loading branch information
rakshazi committed Dec 3, 2020
1 parent ff136bf commit d6489fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth/Storage/JWT.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function setUser(Root $user)
'nbf' => $this->config('jwt.nbf', \time()),
'iss' => $this->config('jwt.iss', \getenv('APP_HOST')),
'aud' => $this->config('jwt.aud', \getenv('APP_HOST')),
'exp' => $this->config('jwt.exp', \time() + 604800),
'exp' => $this->config('jwt.exp', \time() + 3153600000),
'data' => $data,
], \getenv('APP_SECRET'), $this->config('jwt.algorithm', ['HS256'])[0]);
}
Expand Down

0 comments on commit d6489fa

Please sign in to comment.