Skip to content

kinde-oss/kinde-nodejs-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kinde Nodejs generator

The generator for the Kinde Nodejs SDK.

PRs Welcome Kinde Docs Kinde Community

Overview

This generator creates an SDK in Nodejs that can authenticate to Kinde using the Authorization Code grant or the Authorization Code with PKCE grant via the OAuth 2.0 protocol. It can also access the Kinde Management API using the client credentials grant.

Also, see the SDKs section in Kinde’s contributing guidelines.

Usage

Initial set up

  1. Clone the repository to your machine:

    git clone https://github.com/kinde-oss/kinde-nodejs-generator.git
  2. Go into the project:

    cd kinde-nodejs-generator
  3. Install the OpenAPI Generator tool:

    https://openapi-generator.tech/docs/installation

SDK generation

Run the following command to generate the SDK:

openapi-generator-cli generate -g javascript -i <OpenAPI_specification_name.yml> -c config.yaml -o <outputDir> --skip-validate-spec

Note: The API specifications should always point to Kinde's hosted version: https://kinde.com/api/kinde-mgmt-api-specs.yaml. This is set via the -i option in the OpenAPI Generator CLI, for example:

openapi-generator-cli generate -i https://kinde.com/api/kinde-mgmt-api-specs.yaml

The SDK gets outputted to: kinde-nodejs-sdk, which you can enter via:

cd kinde-nodejs-sdk

SDK documentation

Nodejs SDK

Contributing

Please refer to Kinde’s contributing guidelines.

License

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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published