# Okta integration with react native package react-native-app-auth

**URL:** <https://devforum.okta.com/t/okta-integration-with-react-native-package-react-native-app-auth/20767>\
**Category:** OAuth/OIDC\
**Created:** [May 25, 2022, 5:01am UTC](https://devforum.okta.com/t/okta-integration-with-react-native-package-react-native-app-auth/20767 "2022-05-25T05:01:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivaram.447](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@sivaram.447](https://devforum.okta.com/u/sivaram.447)\
**Post date:** [May 25, 2022, 5:01am UTC](https://devforum.okta.com/t/okta-integration-with-react-native-package-react-native-app-auth/20767/1 "2022-05-25T05:01:09Z")

</div>

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);

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 12, 2024, 7:47pm UTC](https://devforum.okta.com/t/okta-integration-with-react-native-package-react-native-app-auth/20767/2 "2024-02-12T19:47:18Z")

</div>

Closed on February 12, 2024, 7:47pm UTC


