K
Kinde11mo ago
Kenpaffu

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.
{
picture: '',
email: '',
id: 'kd_...'
}
{
picture: '',
email: '',
id: 'kd_...'
}
6 Replies
MALEV0L3NT
MALEV0L3NT11mo ago
What function are you running to get that data? What sdk?
Kenpaffu
KenpaffuOP11mo ago
kindeAuthClient.getUser() sveltekit sdk
MALEV0L3NT
MALEV0L3NT11mo ago
The sveltekit documentation says that should return a given name, can you share the exact code snippet?
No description
MALEV0L3NT
MALEV0L3NT11mo ago
Or maybe the user you're getting doesn't have a name entered in Kinde?
Kenpaffu
KenpaffuOP11mo ago
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 name
onderay
onderay11mo ago
You 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.
No description
Want results from more Discord servers?
Add your server