<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007fVxLBCA0Okta Classic EngineIntegrationsAnswered2024-03-25T05:40:06.000Z2022-05-23T06:51:34.000Z2022-05-24T15:50:40.000Z

mieit (mieit) asked a question.

Unable to redirect to mobile application after Okta integration with npm package react-native-app-auth

We planned to integrate Okta with npm package  react-native-app-auth in mobile application. We configured android as mentioned as follows.

 

With the code, we are able to view Okta sign in form and able to provide email and password and navigate to Okta home page instead of redirecting to mobile application.

 

Following code invokes authorize function, but control is not coming back and not seeing result value.

 

Could you please help here what causes unable to redirect to mobile application?

 

import { authorize } from 'react-native-app-auth';

 

const config = {

  issuer: '<YOUR_ISSUER_URL>',

  clientId: '<YOUR_CLIENT_ID>',

  redirectUrl: '<YOUR_REDIRECT_URL>',

  scopes: ['<YOUR_SCOPES_ARRAY>'],

};

 

const result = await authorize(config);

 


This question is closed.
Loading
Unable to redirect to mobile application after Okta integration with npm package react-native-app-auth