kinde-oss / management-api-js

javascript package for interacting with the Kinde Management API
https://www.kinde.com
MIT License
6 stars 5 forks source link

Kinde Management API JS

Description

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

Installation

# npm
npm install @kinde/management-api-js
# yarn
yarn add @kinde/management-api-js
# pnpm
pnpm add @kinde/management-api-js

Configuration

The following ENV variables are required to run the project:

Usage

import { Users, init } from "@kinde/management-api-js";

init();
const { users } = await Users.getUsers();

Params can be passed to the function as an object

import { Users, init } from "@kinde/management-api-js";

const params = {
  id: "kp_xxx",
};

init();
const userData = await Users.getUserData(params);

API documentation

You can find management API documentation here: Kinde Management API Documentation

Contributing

If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes.
  4. Submit a pull request.

License

By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.