Skip to content

Commit

Permalink
🐛 fix: allow use email as name in logto (#4350)
Browse files Browse the repository at this point in the history
  • Loading branch information
cy948 authored Oct 13, 2024
1 parent c04afba commit d5a046a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/next-auth/sso-providers/logto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function LobeLogtoProvider(config: OIDCUserConfig<LogtoProfile>): OIDCConfig<Log
email: profile.email,
id: profile.sub,
image: profile.picture,
name: profile.name ?? profile.username,
name: profile.name ?? profile.username ?? profile.email,
providerAccountId: profile.sub,
};
},
Expand Down

0 comments on commit d5a046a

Please sign in to comment.