Discord Auth user object
Hello, I am wondering if there's a way to get either a display name or a first name or something other than 3 that I'm currently seeing. I want to be able to display the user name, but don't want that to be an email.
6 Replies
What function are you running to get that data? What sdk?
kindeAuthClient.getUser()
sveltekit sdkThe sveltekit documentation says that should return a given name, can you share the exact code snippet?
Or maybe the user you're getting doesn't have a name entered in Kinde?
Yes,
given name
and family name
are only available if the user enters their name in the kinde name form. But it doesn't look like we have access to their discord display name/profile nameYou can ask for the additional details to come through via the ID token https://kinde.com/docs/build/token-customization/
Kinde Docs
Token customization - Build on Kinde - Help center
Our developer tools provide everything you need to get started with Kinde.