Skip to content

Commit

Permalink
0.0.6 [WIP] some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LReg committed Oct 14, 2024
1 parent c8af798 commit 3ef7ed6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/express/src/middleware/Authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const fetchUserInfo = async (userinfoEndpoint: string, token: string): Promise<U
return null;
}

response.data.prefferedUsername = response.data.preferred_username;
// map to camelCase
response.data.preferredUsername = response.data.preferred_username;
return response.data as User;
};

0 comments on commit 3ef7ed6

Please sign in to comment.