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
IkiTg077mo ago
Hey which SDK are you using ?
Deleted User #4562
Deleted User #4562OP7mo ago
nextjs sdk
IkiTg07
IkiTg077mo ago
I think The NextJs SDK exports a management client but I’d advise you to use @kinde/management-api-js instead
Deleted User #4562
Deleted User #4562OP7mo 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
IkiTg077mo 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
Deleted User #4562
Deleted User #4562OP7mo 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
IkiTg077mo 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
CB_Kinde
CB_Kinde7mo ago
Kinde docs
Add a machine to machine application for API access
Our developer tools provide everything you need to get started with Kinde.
Deleted User #4562
Deleted User #4562OP7mo ago
thanks

Did you find this page helpful?