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

Kinde React Native SDK generator for 0.70-0.71

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Java 90.8%Language:Handlebars 3.1%Language:TypeScript 1.4%Language:Shell 1.2%Language:Kotlin 1.0%Language:PHP 0.9%Language:Ruby 0.4%Language:Apex 0.3%Language:Python 0.2%Language:Haskell 0.1%Language:Rust 0.1%Language:Dockerfile 0.1%Language:HTML 0.1%Language:CSS 0.1%Language:Groovy 0.1%Language:Scala 0.1%Language:Objective-C 0.0%Language:JavaScript 0.0%Language:Blade 0.0%Language:Starlark 0.0%Language:Dart 0.0%Language:Emacs Lisp 0.0%Language:Makefile 0.0%Language:Elixir 0.0%Language:SCSS 0.0%