From c4c975eb7b7f8dc3313db1ac157b1ed0bb0ee014 Mon Sep 17 00:00:00 2001 From: Igor Loskutov Date: Thu, 4 Sep 2025 22:00:35 -0400 Subject: [PATCH] github debug --- www/app/lib/authBackend.ts | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/www/app/lib/authBackend.ts b/www/app/lib/authBackend.ts index f091cd6d..81f3a4b2 100644 --- a/www/app/lib/authBackend.ts +++ b/www/app/lib/authBackend.ts @@ -26,25 +26,23 @@ const refreshLocks = new Map>(); const CLIENT_ID = assertExistsAndNonEmptyString( process.env.AUTHENTIK_CLIENT_ID, ); -const CLIENT_SECRET = !isCI - ? assertExistsAndNonEmptyString(process.env.AUTHENTIK_CLIENT_SECRET) - : "noop"; +const CLIENT_SECRET = assertExistsAndNonEmptyString( + process.env.AUTHENTIK_CLIENT_SECRET, +); export const authOptions: AuthOptions = { - providers: !isCI - ? [ - AuthentikProvider({ - clientId: CLIENT_ID, - clientSecret: CLIENT_SECRET, - issuer: process.env.AUTHENTIK_ISSUER, - authorization: { - params: { - scope: "openid email profile offline_access", - }, - }, - }), - ] - : [], + providers: [ + AuthentikProvider({ + clientId: CLIENT_ID, + clientSecret: CLIENT_SECRET, + issuer: process.env.AUTHENTIK_ISSUER, + authorization: { + params: { + scope: "openid email profile offline_access", + }, + }, + }), + ], session: { strategy: "jwt", },