okta/okta-react-native

iOS - Calling `signOut` to clear browser session gives an alert `Sign In` instead of `Sign Out`

grgmo opened this issue · 5 comments

grgmo commented

Describe the bug?

We are using social login with signInWithBrowser({ idp: 'your_idp_here' }); and we get native alert with correct message for signing in. When we call signOut it shows the same message as when you sign in - ... Wants to Use ... to Sign In.

What is expected to happen?

The message on the alert should be ... Wants to Use ... to Sign Out

What is the actual behavior?

The message on the alert is ... Wants to Use ... to Sign In

Reproduction Steps?

On iOS - login with any social login provider using signInWithBrowser({ idp: 'your_idp_here' }); and sign out using signOut, it shows native alert with incorrect message.

Additional Information?

No response

SDK Version

2.4.0

Build Information

No response

Unfortunately this is a known limitation of Apple's platform, and there's nothing that can be done to override that alert. Please see the following issue for more context. #254

Any update on this?

I'm facing the same issue

Any update on this?

I'm facing the same issue

What update do you need? It's a build-in system level alert that cannot be bypassed unless you use the noSSO: true flag when calling signInWithBrowser

Setting noSSO to true works for me!

What are the downsides to setting noSSO to true?