I’m trying to initiate a login from a React-Native app but am having no success with the documentation I’ve been able to find.
The Samples provided in the guide (https://developer.okta.com/quickstart/#/react-native/nodejs/express), downloaded and executed from github run, but nothing happens when pressing the login button. I also followed the instructions from the readme of the new SDK (https://github.com/okta/okta-oidc-js/tree/master/packages/okta-react-native) give the same result.
I’ve also tried using schematics 0.9.0 (following this: OktaDev Schematics 0.9.0: Now with React Native Support!) which is by far the easiest btw, but this gives a similar result, pressing the login button gives an Authorization Error, -600 error response.
In no case has the browser has opened to ask for credentials and no activity shows on the Okta logs so it feels like it must be some sort of configuration issue, but I’m at a loss to know what.
I’ve used the config settings as described in various places, my config looks like this:
clientId: '0oa1s762u6H38j0jJ357', redirectUri: 'com.okta.dev-686719:/callback', endSessionRedirectUri: 'com.okta.dev-686719:/callback', discoveryUri: 'https://dev-686719.okta.com/oauth2/default', scopes: ['openid', 'profile', 'offline_access'], requireHardwareBackedKeyStore: false,
Any advice would be much appreciated.