diff --git a/src/utils/auth/oidc.ts b/src/utils/auth/oidc.ts index bf6e59df34d..47076275e3c 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'); }