This example shows you how to use the Okta React Native SDK to adopt Okta Authentication flow in your app.
To run this application, you first need to clone this repo and then enter into this directory:
git clone [email protected]:okta/samples-js-react-native.git
cd samples-js-react-native/custom-sign-in
Install dependencies based on package-lock.json
npm ci
CocoaPods dependencies are needed for ios development
cd ios && pod install && cd ..
Start app server:
npm start
Launch an Android Emulator or iOS Simulator, then
# Android
npm run android
# iOS
npm run ios
Enter your credentials and tap the Login button. You can login with the same account that you created when signing up for your Developer Org, or you can use a known username and password from your Okta Directory.
After you complete the login flow, you will be able to see the details of user's account. Tap Get Access Token button to excahnge session token to access token via OIDC SDK.