fix(auth): don't try to find openid provider when none are configured
Fixes a regression introduced in 748fa2b798
Related to https://github.com/go-vikunja/vikunja/issues/397
This commit is contained in:
parent
acf1ce862a
commit
66293795e7
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue