K
Kindeβ€’2mo ago
moggelitalanya

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
Yoshify
Yoshifyβ€’2mo ago
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)
moggelitalanya
moggelitalanyaOPβ€’2mo ago
@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.
Yoshify
Yoshifyβ€’2mo ago
Any time mate! Let me know how you get on πŸ‘
moggelitalanya
moggelitalanyaOPβ€’2mo ago
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!

Did you find this page helpful?