1
0
Fork 0

Update AuthServiceProvider

This commit is contained in:
Daniel Supernault 2019-04-08 01:30:47 -06:00
parent 64ab306b50
commit c4151c3751
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 14 additions and 3 deletions

View File

@ -25,8 +25,19 @@ 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));
Passport::enableImplicitGrant();
Passport::setDefaultScope([
'user:read',
'user:write'
]);
Passport::tokensCan([
'user:read' => 'Read a users profile info and media',
'user:write' => 'This scope lets an app "Change your profile information"',
]);
}
}