1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 00:05:29 +00:00

Update AuthServiceProvider, add oauth support

This commit is contained in:
Daniel Supernault 2019-01-13 22:27:42 -07:00
parent aa53a1439f
commit e61c6a06e0
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 4 additions and 6 deletions

View file

@ -25,10 +25,8 @@ class AuthServiceProvider extends ServiceProvider
{
$this->registerPolicies();
// Passport::routes();
// Passport::tokensExpireIn(now()->addDays(15));
// Passport::refreshTokensExpireIn(now()->addDays(30));
Passport::routes();
Passport::tokensExpireIn(now()->addDays(15));
Passport::refreshTokensExpireIn(now()->addDays(30));
}
}

View file

@ -42,7 +42,7 @@ return [
],
'api' => [
'driver' => 'token',
'driver' => 'passport',
'provider' => 'users',
],
],