Skip to content

Commit

Permalink
fix: handle undefined preferred_username in OAuthAuthorization (#829)
Browse files Browse the repository at this point in the history
  • Loading branch information
bolmsten authored Oct 25, 2024
2 parents 7bf3f37 + 0088509 commit 4236884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/src/auth/OAuthAuthorization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class OAuthAuthorization extends UserAuthorization {
undefined,
userInfo.family_name,
userInfo.email,
userInfo.preferred_username,
userInfo.preferred_username ?? '',
userInfo.sub,
tokenSet.refresh_token ?? '',
client.issuer.metadata.issuer,
Expand Down

0 comments on commit 4236884

Please sign in to comment.