Skip to content

Latest commit

 

History

History
 
 

custom-sign-in

Okta React Native Custom Sign In Example

This example shows you how to use the Okta React Native SDK to adopt Okta Authentication flow in your app.

Clone repo

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

Install JS dependencies

Install dependencies based on package-lock.json

npm ci

Install CocoaPods dependencies

CocoaPods dependencies are needed for ios development

cd ios && pod install && cd ..

Run sample

Start app server:

npm start

Launch an Android Emulator or iOS Simulator, then

# Android
npm run android

# iOS
npm run ios

Using This Example

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.