A bare minimum React Native App, OIDC Provider, and API (coming soon) all running locally with a few simple commands.
The two folders, OIDCProvider and ReactNativeApp each have their package.json file.
Starts a node server on port 3000.
- Navigate into OIDCProvider and run
npm i
to download packages - Run
npm run start
or double click onrun-start.cmd
- Follow React native's Getting Started instructions for Building Projects with Native Code
- Allow the android emulator to communicate with your local OIDC Provider
- Navigate to
[Your Android SDK Directory]\platform-tools
- Open a command window
- Run
adb reverse tcp:3000 tcp:3000
* Note: You have to run this again each time you open the emulator - In the ReactNativeApp folder run
npm i
- Run
react-native run-android
or double click onrun-android.cmd
- If the React Packager window closes due to an error just re-launch it using
react-native start
, then close and re-open the app through the emulator UI.
Use the following emails with any password to sign in:
- Build API to return a simple todo list for each user of OIDC Provider and update ReactNativeApp to use API.
- Work with oidc-client and redux-oidc maintainers to reduce code needed by consumers.
- Add silent renew
- Add session monitoring