fix: change groups check to undefined instead of not to not show warning when 0 groups in list
This commit is contained in:
1 parent
34ef216f3f
commit
83e3800ddf
1 file changed
+1
-1
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user