okta-react-native icon indicating copy to clipboard operation
okta-react-native copied to clipboard

Redirect after successful sign in not working

Open celle886 opened this issue 1 year ago • 0 comments

Describe the bug?

I'm trying to implement custom sign in. But the redirect callback isn't working. In the developer console i can see, that authorize endpoint is answered with redirect and then i can see my defined callback with query params code and state. But this callback stuck in pending state and never gets resolved.

I also debugged it a little bit deeper and saw that the authenticate methode of the native oktaBridge returns an error with code -1002. Can anybody help? Is this a bug or is something in config missing.

My okta application is from type native and uses no client authentication, what means that it is forced to use PKCE (Is this the issue? all examples with PKCE are using browser sign in??)

What is expected to happen?

Callback will be resolved and for callback defined page will be shown.

What is the actual behavior?

app hangs after authorize

Reproduction Steps?

  • create config
  • trigger sign in with username and password

Additional Information?

No response

SDK Version

2.17.0

Build Information

nx mono repo

celle886 avatar Mar 12 '25 05:03 celle886