Automatically logs in despite clearing credentials for logut iOS (Swift)

Hi There,

I’m using the Auth0 SDK for iOS and I’m programming in Swift. I implemented logging in using Google without an issue. I followed the documentation for logging out by clearing the credentials by calling credentialsManager.clear().

This logs me out of the app. However, when I click “Log in with Google”, I am automatically logged in to the original account. There is no option to select an account or anything. Any help would be greatly appreciated. Thanks!

We had the same issue. You need to call auth0.webAuth().clearSession()
The you will probably face another issue

Hey there @ios1-andrew!

We’re trying to investigate this with our developer support engineers regarding Sean’s issue. Will let you know in that thread what was the cause and how to fix it once they found the root reason!

1 Like

@sean.liu have you found out the root cause already, collaborating with our developer support engineers?

It looks like an apple system dialog and no way to change it.

1 Like

Gotchya. Thanks a lot for sharing it with the rest of community!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.