React Native Okta Sign out crash

I am using OKTA in React Native app and have two different sites to connect (Prod and Stage).The App is crashing when i tried to log out in Prod but same setup works fine in Stage getting below exception when trying to log out :-

  AndroidRuntime: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1994471877, result=-1, data=Intent { act=com.okta.oidc.OktaRedirectActivity.REDIRECT_ACTION dat=com.okta.infinitycloud:?state=NfirEe5k7ZKf5b3iYGjHgA flg=0x34400000 cmp=com.oktademo/com.okta.oidc.OktaAuthenticationActivity }} to activity {com.oktademo/com.oktademo.MainActivity}: java.lang.UnsupportedOperationException: This isn't a hierarchical URI.01-12 01:20:09.442  7638  7638 E AndroidRuntime: at 01:20:09.442  7638  7638 E AndroidRuntime: at

Library Used :- @okta/okta-react-native - npm

Have some one faced the same any help is highly appreciated.


What is the endSessionRedirectUri used ? Hope you have already made sure it is the same as the Logout Redirect URI in the app config in Okta Admin dashboard.

Hi @gpadma ,
Thanks for your reply yes I have checked the end session URI and it looks fine below are the details:-

oidc: {
issuer: ‘’,
clientId: ‘0oa7xa4k41rrrrDo05d7’,
redirectUri: ‘com.okta.infinitycloud:/callback’,
endSessionRedirectUri: ‘com.okta.infinitycloud:/’,
discoveryUri: ‘’,
scopes: [‘openid’, ‘profile’, ‘offline_access’],
requireHardwareBackedKeyStore: false, },