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
Hey which SDK are you using ?
nextjs sdk
I think The NextJs SDK exports a management client but I’d advise you to use @kinde/management-api-js instead
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
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
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
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
Hi @DisamDev this topic will help: https://docs.kinde.com/developer-tools/kinde-api/add-a-m2m-application-for-api-access/
Kinde docs
Add a machine to machine application for API access
Our developer tools provide everything you need to get started with Kinde.
thanks