The generator for the Kinde React Native 0.7x SDK.
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.
- Java Link to download
-
Clone the repository to your machine:
git clone https://github.com/kinde-oss/kinde-react-native-generator-0-7x
-
Go into the project:
cd kinde-react-native-generator-0-7x
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
- 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", ... } ... }
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
Please refer to Kinde’s contributing guidelines.
By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.