Skip to content

Commit

Permalink
fix(context): update user name extraction to use given_name instead o…
Browse files Browse the repository at this point in the history
…f preferred_username
  • Loading branch information
gcordalis committed Feb 16, 2025
1 parent b82e0a3 commit 95617a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function createContext(userInfo: Record<string, unknown>) {
const context = {
user: {
id: userInfo.sub,
name: userInfo.preferred_username || "",
name: userInfo.given_name || "",
email: userInfo.email || "",
lobby_bypass: userInfo.lobby_bypass || false,
security_bypass: userInfo.security_bypass || false,
Expand Down

0 comments on commit 95617a3

Please sign in to comment.