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',
],
],