mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-24 08:44:02 +00:00
Update AuthServiceProvider
This commit is contained in:
parent
9528d97c0a
commit
6d6f517db0
2 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,9 @@ class AuthServiceProvider extends ServiceProvider
|
|||
$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();
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue