Skip to content

Commit

Permalink
Update AuthServiceProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Oct 1, 2019
1 parent 9528d97 commit 6d6f517
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Providers/AuthServiceProvider.php
Expand Up @@ -27,7 +27,9 @@ public function boot()
$this->registerPolicies();

if(config('pixelfed.oauth_enabled')) {
Passport::routes();
Route::group(['middleware' => 'cors'], function() {
Passport::routes();
});
Passport::tokensExpireIn(now()->addDays(15));
Passport::refreshTokensExpireIn(now()->addDays(30));
Passport::enableImplicitGrant();
Expand Down
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -13,6 +13,7 @@
"ext-json": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"barryvdh/laravel-cors": "0.11.4",
"beyondcode/laravel-self-diagnosis": "^1.0.2",
"doctrine/dbal": "^2.7",
"fideloper/proxy": "^4.0",
Expand Down

0 comments on commit 6d6f517

Please sign in to comment.