auth0 / react-native-auth0

React Native toolkit for Auth0 API
https://auth0.com
MIT License
477 stars 204 forks source link

Do not logout from SSO with SFSafariViewController #845

Closed guhcostan-tw closed 2 weeks ago

guhcostan-tw commented 8 months ago

Checklist

Description

I updated the library and used SFSafariViewController, but when logout the user was still logged in to SFSafariViewController, I need the useSFSafariViewController option when logout too.

Reproduction

1 - Login 2 - Logout 3 - Use an SSO page

Additional context

No response

react-native-auth0 version

v3.1.0

React Native version

0.71.14

Expo version

No response

Platform

iOS

Platform version(s)

8+

guhcostan-tw commented 8 months ago

@poovamraj Can you help me with this? I need to use SFSafariViewController

poovamraj commented 5 months ago

@guhcostan-tw thanks for raising this. We have not supported this unfortunately due to restricts on Apple side as mentioned here. I will let our iOS expert @Widcket answer this one if this is still required.

desusai7 commented 2 weeks ago

Hi @guhcostan-tw,

Unfortunately, nothing can done from our side to solve this issue completely, as this is due to the limitation from Apple to always use SFSafariViewController in a visible way to the user. But however we can have a workaround to clear the credentials when user logsouts and pass parameter 'prompt' : 'login' to the login method as shown here

However the preferred and recommended way by Apple to use for WebAuth purposes is ASWebAuthenticationSession which is the default user agent when you use RN SDK.

Closing this issue as there isn't any activity, but feel free to open this again, if you need more information.