React Native - expo
Hello!
Im using Kinde within a React Native- expo project, I already built a NextJS application using Kinde, which works like a charm.
When trying to build something similar in react native with the fitting SDK im seeing a issue right away, when using "getUserDetails" im not getting the set username of the logged in user.
Ive checked the token-settings but have not found anything regarding enabling it to be within the object recieved from "getUserDetails".
Any solution to this?
Thanks in advance π
4 Replies
Hey @moggelitalanya!
The React Native SDK doesn't seem to include the
preferred_username
claim in getUserDetails
by default - might be worth lodging a feature request for that!
I don't have a React Native project on hand set up to test so could you try something for me?
Instead of client.getUserDetails()
try client.getClaim('preferred_username', TokenType.ID_TOKEN)
@Yoshify , ahh, as I figured when reading the docs.
Great idea, I will try this ASAP! If not possible i will def do a feature request on this π
Thanks again.
Any time mate! Let me know how you get on π
Lovely support @Yoshify π
hi @Yoshify , just wanted to give an update on this request. Ive unforunaly had to pause the development on the React Native application. I will try this out as soon as i pick it up again.
Sorry!