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(); $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));
} }
} }

View file

@ -42,7 +42,7 @@ return [
], ],
'api' => [ 'api' => [
'driver' => 'token', 'driver' => 'passport',
'provider' => 'users', 'provider' => 'users',
], ],
], ],