mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Make API tokens expire in 20 years
TODO: Make this configurable and report the expiration in the UI
This commit is contained in:
parent
8bbf8409b1
commit
460485d843
|
@ -89,6 +89,7 @@ class AuthServiceProvider extends ServiceProvider
|
|||
Passport::routes();
|
||||
Passport::tokensExpireIn(Carbon::now()->addYears(20));
|
||||
Passport::refreshTokensExpireIn(Carbon::now()->addYears(20));
|
||||
Passport::personalAccessTokensExpireIn(Carbon::now()->addYears(20));
|
||||
Passport::withCookieSerialization();
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue