Skip to content

kinde-oss/kinde-react-native-generator-0-7x

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kinde React Native 0.7x generator

The generator for the Kinde React Native 0.7x SDK.

PRs Welcome Kinde Docs Kinde Community

Overview

This generator creates an SDK in React Native 0.7x that can authenticate to Kinde using the Authorization Code grant or the Authorization Code with PKCE grant via the OAuth 2.0 protocol

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

Usage

Requirements

Initial set up

  1. Clone the repository to your machine:

    git clone https://github.com/kinde-oss/kinde-react-native-generator-0-7x
  2. Go into the project:

    cd kinde-react-native-generator-0-7x

SDK generation

Run the following command to generate the SDK:

make clean
make build-react-native

The SDK gets outputted to: ./out/kinde-react-native-sdk, which you can enter via:

cd out/kinde-react-native-sdk

SDK documentation

React Native 0.7x SDK

Development

Add the SDK to your existing project

  • To add the SDK in an already existing project, you must first compile the SDK package:
    git init && npm install
    npm run build
  • Next, go to the project's root directory:
    npm pack <path-to-generator-folder>/out/kinde-react-native-sdk
  • Update the package.json file
    {
      ...
      "dependencies": {
        "@kinde-oss/react-native-sdk-0-7x": "file:kinde-oss-react-native-sdk-0-7x-<version>.tgz",
        ...
      }
      ...
    }

Regenerate the SDK

When you modify the SDK, it is essential to update the template files to regenerate the SDK:

  • Mustache files: /generators/react-native/src/main/resources/react-native
  • Generator file: generators/react-native/src/main/java/com/kinde/codegen/KindeReactNativeGenerator.java

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 React Native SDK generator for 0.70-0.71

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published