forked from mirror/pixelfed
Update AuthServiceProvider, add oauth support
This commit is contained in:
parent
aa53a1439f
commit
e61c6a06e0
2 changed files with 4 additions and 6 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ return [
|
|||
],
|
||||
|
||||
'api' => [
|
||||
'driver' => 'token',
|
||||
'driver' => 'passport',
|
||||
'provider' => 'users',
|
||||
],
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue