fix: change groups check to undefined instead of not to not show warning when 0 groups in list

This commit is contained in:
Meier Lukas
2024-02-18 11:53:44 +01:00
parent 34ef216f3f
commit 83e3800ddf

View File

@@ -25,7 +25,7 @@ const provider: OAuthConfig<Profile> = {
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');
}