K
Kinde2mo ago
DisamDev

Can I change the user info from the SDK?

I would like to create a page so that the user can change his first name, last name, email, password... but I can't find docs to do it.
9 Replies
IkiTg07
IkiTg072mo ago
Hey which SDK are you using ?
DisamDev
DisamDevOP2mo ago
nextjs sdk
IkiTg07
IkiTg072mo ago
I think The NextJs SDK exports a management client but I’d advise you to use @kinde/management-api-js instead
DisamDev
DisamDevOP2mo ago
okay @IkiTg07 https://kinde.com/api/docs/#update-user I got this but i dont know how to switch to using the npm API without using the endpoint
IkiTg07
IkiTg072mo ago
GitHub
GitHub - kinde-oss/management-api-js: javascript package for intera...
javascript package for interacting with the Kinde Management API - kinde-oss/management-api-js
DisamDev
DisamDevOP2mo ago
when using the init() you have to set the env variables? inside the init() KINDE_MANAGEMENT_CLIENT_ID: Client ID of your M2M token KINDE_MANAGEMENT_CLIENT_SECRET: Client Secret of your M2M token where i get this
IkiTg07
IkiTg072mo ago
Yes Not inside just in your env file To get these you need to create a M2M application in your kinde dashboard and get the values there
Claire_Kinde
Claire_Kinde2mo ago
Kinde docs
Add a machine to machine application for API access
Our developer tools provide everything you need to get started with Kinde.
DisamDev
DisamDevOP2mo ago
thanks
Want results from more Discord servers?
Add your server