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
IkiTg076d ago
Hey which SDK are you using ?
DisamDev
DisamDev6d ago
nextjs sdk
IkiTg07
IkiTg076d ago
I think The NextJs SDK exports a management client but I’d advise you to use @kinde/management-api-js instead
DisamDev
DisamDev6d 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
IkiTg076d 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
DisamDev6d 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
IkiTg076d 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_Kinde6d 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
DisamDev5d ago
thanks
Want results from more Discord servers?
Add your server