Javascript SDK to interact with the Kinde Management API.
Important: This has to be used on a backend service, will not work on a browser or client based libraries
# npm
npm install @kinde/management-api-js
# yarn
yarn add @kinde/management-api-js
# pnpm
pnpm add @kinde/management-api-js
The following ENV variables are required to run the project:
KINDE_DOMAIN
: Kinde domain e.g. mybusiness.kinde.com
KINDE_MANAGEMENT_CLIENT_ID
: Client ID of your M2M tokenKINDE_MANAGEMENT_CLIENT_SECRET
: Client Secret of your M2M tokenimport { Users, init } from "@kinde/management-api-js";
init();
const { users } = await Users.getUsers();
import { Users, init } from "@kinde/management-api-js";
const params = {
id: "kp_xxx",
};
init();
const userData = await Users.getUserData(params);
You can find management API documentation here: Kinde Management API Documentation
If you'd like to contribute to this project, please follow these steps:
By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.