Skip to content

kinde-oss/kinde-flutter-generator

Repository files navigation

Kinde Flutter generator

The generator for the Kinde Flutter SDK.

PRs Welcome Kinde Docs Kinde Community

Overview

This generator creates an SDK in Flutter 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

Requirements

Install the OpenAPI Generator tool:

npm install @openapitools/openapi-generator-cli -g

Initial set up

Clone the repository to your computer:

git clone https://github.com/kinde-oss/kinde-flutter-generator

Change the current working directory:

cd kinde-flutter-generator

SDK generation

To generate API please run:

npx @openapitools/openapi-generator-cli generate -i https://kinde.com/api/kinde-mgmt-api-specs.yaml -g dart-dio --additional-properties=pubName=kinde_flutter_sdk -o kinde-flutter-sdk/ -c config.yaml --enable-post-process-file --global-property modelTests=false,apiTests=false

Development

Change the current directory to the newly created kinde-flutter-sdk folder:

cd kinde-flutter-sdk

Gets all the dependencies for kinde-flutter-sdk packages

flutter packages get

to generate our built_value models and complete the process

dart run build_runner build --delete-conflicting-outputs

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

Kinde Flutter SDK generator

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages