mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
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();
|
$this->registerPolicies();
|
||||||
|
|
||||||
// Passport::routes();
|
Passport::routes();
|
||||||
|
Passport::tokensExpireIn(now()->addDays(15));
|
||||||
// Passport::tokensExpireIn(now()->addDays(15));
|
Passport::refreshTokensExpireIn(now()->addDays(30));
|
||||||
|
|
||||||
// Passport::refreshTokensExpireIn(now()->addDays(30));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ return [
|
||||||
],
|
],
|
||||||
|
|
||||||
'api' => [
|
'api' => [
|
||||||
'driver' => 'token',
|
'driver' => 'passport',
|
||||||
'provider' => 'users',
|
'provider' => 'users',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue