Make API tokens expire in 20 years

TODO: Make this configurable and report the expiration in the UI
This commit is contained in:
snipe 2020-11-09 22:33:43 -08:00
parent 8bbf8409b1
commit 460485d843

View file

@ -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();