Skip to content

Commit

Permalink
change default name
Browse files Browse the repository at this point in the history
  • Loading branch information
pontussjostedt committed Feb 17, 2025
1 parent 3a663a5 commit 83ff33a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/src/repositories/oauth.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ export class OAuthRepository implements IOAuthRepository {
return {
sub: eprofile.username,
email: eprofile.email,
name: eprofile.nickname,
preferred_username: eprofile.fullName,
name: eprofile.fullName ?? eprofile.nickname ?? eprofile.username,
given_name: eprofile.fullName,
preferred_username: eprofile.username,
features: eprofile.access.features
}
} catch (error: Error | any) {
Expand Down

0 comments on commit 83ff33a

Please sign in to comment.