The generator for the Kinde Nodejs SDK.
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.
-
Clone the repository to your machine:
git clone https://github.com/kinde-oss/kinde-nodejs-generator.git
-
Go into the project:
cd kinde-nodejs-generator
-
Install the OpenAPI Generator tool:
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
Please refer to Kinde’s contributing guidelines.
By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.