Update AuthServiceProvider

pull/1798/head
Daniel Supernault 5 years ago
parent 4fa5ca4f82
commit 43d4517f71
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -27,7 +27,7 @@ class AuthServiceProvider extends ServiceProvider
$this->registerPolicies();
if(config('pixelfed.oauth_enabled')) {
Passport::routes(null, ['middleware' => ['twofactor','validemail',\Barryvdh\Cors\HandleCors::class]]);
Passport::routes(null, ['middleware' => ['twofactor', \Barryvdh\Cors\HandleCors::class]]);
Passport::tokensExpireIn(now()->addDays(15));
Passport::refreshTokensExpireIn(now()->addDays(30));
Passport::enableImplicitGrant();

Loading…
Cancel
Save