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

[iOS] code: '-1000' Authentication Error: No response

Open mrj0 opened this issue 10 months ago • 2 comments

Describe the bug?

Hello,

I'm trying to upgrade a working app to expo 52 and have encountered issues with okta. On Android the same code and user/password works, but iOS for some reason does not. I get an exception:

[VVPStaging.debug.dylib] { [Error: Sign in was not authorized] code: '-1000', detail: [Error: Authorization Error: Authentication Error: No response] }

This is using signIn from @okta/okta-react-native.

The logs on the server side show a successful login with the same logs as Android. The "No response" issue seems to only affect iOS.

What is expected to happen?

Login success. No MFA enabled so there should not be any extra steps.

What is the actual behavior?

Error, failed login

Reproduction Steps?

Attempt to login with username and password. Oauth flow with Google works.

Additional Information?

I tried adding my custom scheme to the plist file using https://docs.expo.dev/versions/latest/config/app/#associateddomains but it didn't help.

SDK Version

2.17.0, tried downgrading to previously working 2.12.0 as well

Build Information

Building with deployment target 15.1

mrj0 avatar Mar 26 '25 04:03 mrj0

I think my problem may be related to this https://github.com/okta/okta-oidc-ios/pull/362

mrj0 avatar Mar 26 '25 23:03 mrj0

Image

mrj0 avatar Mar 26 '25 23:03 mrj0