From 66293795e7bea4efda5a52f27728270c17b34241 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 24 Jan 2025 19:16:02 +0100 Subject: [PATCH] fix(auth): don't try to find openid provider when none are configured Fixes a regression introduced in 748fa2b798f41c6ebec8ec964286c9639fe3dfd7 Related to https://github.com/go-vikunja/vikunja/issues/397 --- frontend/src/stores/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/stores/auth.ts b/frontend/src/stores/auth.ts index ab1e71f08..960cb1cb9 100644 --- a/frontend/src/stores/auth.ts +++ b/frontend/src/stores/auth.ts @@ -426,7 +426,7 @@ export const useAuthStore = defineStore('auth', () => { await checkAuth() // if configured, redirect to OIDC Provider on logout - const fullProvider: IProvider = configStore.auth.openidConnect.providers.find((p: IProvider) => p.key === loggedInVia) + const fullProvider: IProvider = configStore.auth.openidConnect.providers?.find((p: IProvider) => p.key === loggedInVia) if (fullProvider) { redirectToProviderOnLogout(fullProvider) }