From 83e3800ddf806d6eada444c527c1b3e89f9f664e Mon Sep 17 00:00:00 2001 From: Meier Lukas Date: Sun, 18 Feb 2024 11:53:44 +0100 Subject: [PATCH] fix: change groups check to undefined instead of not to not show warning when 0 groups in list --- src/utils/auth/oidc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/auth/oidc.ts b/src/utils/auth/oidc.ts index bf6e59df3..47076275e 100644 --- a/src/utils/auth/oidc.ts +++ b/src/utils/auth/oidc.ts @@ -25,7 +25,7 @@ const provider: OAuthConfig = { async profile(profile) { const user = await adapter.getUserByEmail!(profile.email); - if (!profile.groups) { + if (profile.groups == undefined) { Consola.warn('no groups found in profile of oidc user'); }