Amplify-ios: Auth signOut after webUI signIn does not clear browser previous user id

Created on 10 Dec 2020  路  6Comments  路  Source: aws-amplify/amplify-ios

Describe the bug
Amplify.Auth.signOut() does not clear the previously used id. This will not allow the user to sign in again with another user.

To Reproduce
Steps to reproduce the behavior:

  1. SignIn using Amplify.Auth.signInWithWebUI
  2. After successful signIn, signout the user by Amplify.Auth.signOut
  3. Now try to signIn again using Amplify.Auth.signInWithWebUI.
  4. The user is not presented a signIn screen, Amplify automatically sign in the user with the previous user's account.

Expected behavior
After signOut Amplify.Auth.signInWithWebUI should work as a fresh start.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment(please complete the following information):

  • Amplify Framework Version: 1.5.0
  • Dependency Manager: Cocoapods
  • Swift Version : 5.0
auth bug closing soon requesting info

Most helpful comment

If you go into General Settings app -> Safari you can clear the cache. This will clear the sign in

All 6 comments

@palpatim @shikhilnuwal Is there any solution you found on this?

@palpatim @shikhilnuwal Is there any solution you found on this?

No. Waiting for Amplify team to respond.

Hi @shikhilnuwal

Are you using a social provider to signIn in HostedUI? We do not have control on the session if you are signing through other social providers like Apple, Google, FB etc.

If you go into General Settings app -> Safari you can clear the cache. This will clear the sign in

This issue is being automatically closed due to inactivity. If you believe it was closed by mistake, provide an update and re-open it.

Was this page helpful?
0 / 5 - 0 ratings