mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update AuthServiceProvider
This commit is contained in:
parent
64ab306b50
commit
c4151c3751
1 changed files with 14 additions and 3 deletions
|
@ -25,8 +25,19 @@ 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));
|
||||||
|
Passport::enableImplicitGrant();
|
||||||
|
|
||||||
|
Passport::setDefaultScope([
|
||||||
|
'user:read',
|
||||||
|
'user:write'
|
||||||
|
]);
|
||||||
|
|
||||||
|
Passport::tokensCan([
|
||||||
|
'user:read' => 'Read a user’s profile info and media',
|
||||||
|
'user:write' => 'This scope lets an app "Change your profile information"',
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue