Including the user's username in the Access Token

Title :p I don't want to have to hit the Kinde API to retrieve the user's username. Additionally, it would be nice if getUser or getUserProfile included that info.
3 Replies
TotalScrub
TotalScrub2d ago
You can do this by customising the access token. (Go to your Kinde app in the admin portal and click on Tokens, and then 'Customize'. The UI shows 0 properties enabled even if you enable things, but I believe that this is just a visual bug. The email address will appear in the access token claims
No description
TotalScrub
TotalScrub2d ago
I'm assuming that by 'username' you mean email address with this, but if you're using Username + code (which I'm not), then it might be a different claim you need to enable
Ɇ₦ĐɆⱤV₳₥₱łⱤɆ
I meant username + code auth. There is no claim for username hence this post 😛

Did you find this page helpful?