Skip to content

Commit

Permalink
🐛 fix: no user name if Cloudflare Zero Trust with onetimepin (lobehub…
Browse files Browse the repository at this point in the history
  • Loading branch information
hezhijie0327 committed Aug 28, 2024
1 parent 3114397 commit 5bfee5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/next-auth/sso-providers/cloudflare-zero-trust.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const provider = {
profile(profile) {
return {
email: profile.email,
name: profile.name,
name: profile.name ?? profile.email,
providerAccountId: profile.sub,
};
},
Expand Down

0 comments on commit 5bfee5a

Please sign in to comment.