From 637cdca27a1b884cff7e225e70d873883f569a28 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 7 May 2023 05:18:59 -0600 Subject: [PATCH] Fix CI --- 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 9c6adc32e..5f028479f 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -24,7 +24,7 @@ class AuthServiceProvider extends ServiceProvider */ public function boot() { - if(config_cache('pixelfed.oauth_enabled') == true) { + if(config('app.env') === 'production' && config_cache('pixelfed.oauth_enabled') == true) { Passport::tokensExpireIn(now()->addDays(config('instance.oauth.token_expiration', 356))); Passport::refreshTokensExpireIn(now()->addDays(config('instance.oauth.refresh_expiration', 400))); Passport::enableImplicitGrant();