Skip to content

Commit

Permalink
fix: use email address in profile, not username
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Feb 21, 2024
1 parent 8cff175 commit 978d336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/withKeycloak.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default (App, initialAuth) => {
provider: 'keycloak',
providerData: keycloak,
user: {
username: keycloak.tokenParsed ? keycloak.tokenParsed.preferred_username : 'unauthenticated',
username: keycloak.tokenParsed ? keycloak.tokenParsed.email : 'unauthenticated',
},
},
});
Expand Down

0 comments on commit 978d336

Please sign in to comment.