From 868cea96cafe8865128f0d518e37b413cdc8e79a Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 11 May 2021 23:45:01 -0600 Subject: [PATCH] Update AuthServiceProvider --- app/Providers/AuthServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php index 81430ef88..0c240d16e 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -26,7 +26,7 @@ class AuthServiceProvider extends ServiceProvider { $this->registerPolicies(); - if(config_cache('pixelfed.oauth_enabled')) { + if(\config_cache('pixelfed.oauth_enabled')) { Passport::routes(null, ['middleware' => ['twofactor', \Fruitcake\Cors\HandleCors::class]]); Passport::tokensExpireIn(now()->addDays(config('instance.oauth.token_expiration', 15))); Passport::refreshTokensExpireIn(now()->addDays(config('instance.oauth.refresh_expiration', 30)));