Update AuthServiceProvider

pull/1740/head
Daniel Supernault 2019-09-30 22:59:16 -06:00
rodzic 9528d97c0a
commit 6d6f517db0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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();

Wyświetl plik

@ -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",