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
IkiTg073mo ago
Hey which SDK are you using ?
Samuel Corsan
Samuel CorsanOP3mo ago
nextjs sdk
IkiTg07
IkiTg073mo ago
I think The NextJs SDK exports a management client but I’d advise you to use @kinde/management-api-js instead
Samuel Corsan
Samuel CorsanOP3mo 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
IkiTg073mo 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
Samuel Corsan
Samuel CorsanOP3mo 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
IkiTg073mo 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_Kinde3mo ago
Kinde docs
Add a machine to machine application for API access
Our developer tools provide everything you need to get started with Kinde.
Samuel Corsan
Samuel CorsanOP3mo ago
thanks
Want results from more Discord servers?
Add your server