Skip to content

Commit

Permalink
fix: change groups check to undefined instead of not to not show warn…
Browse files Browse the repository at this point in the history
…ing when 0 groups in list
  • Loading branch information
Meierschlumpf committed Feb 18, 2024
1 parent 34ef216 commit 83e3800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/auth/oidc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit 83e3800

Please sign in to comment.