Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth signOut after signInWithWebUI does not clear browser session #5538

Closed
3 of 14 tasks
devsideal opened this issue Oct 9, 2024 · 2 comments
Closed
3 of 14 tasks

Auth signOut after signInWithWebUI does not clear browser session #5538

devsideal opened this issue Oct 9, 2024 · 2 comments
Labels
auth Issues related to the Auth Category question A question about the Amplify Flutter libraries

Comments

@devsideal
Copy link

Description

Describe the bug
Amplify.Auth.signOut() does not clear the SFAuthentication session. This will not allow the user to signIn again with another users.

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Notifications (Push)
  • Storage

Steps to Reproduce

  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 signin the user to the previous users account.

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

Screenshots

No response

Platforms

  • iOS
  • Android
  • Web
  • macOS
  • Windows
  • Linux

Flutter Version

3.22.2

Amplify Flutter Version

2.4.1

Deployment Method

Amplify CLI (Gen 1)

Schema

No response

@github-actions github-actions bot added pending-triage This issue is in the backlog of issues to triage pending-maintainer-response Pending response from a maintainer of this repository labels Oct 9, 2024
@tyllark
Copy link
Member

tyllark commented Oct 9, 2024

Hello @devsideal thank you for submitting this issue. There is a feature request for this already open, but it has unfortunately been blocked by Cognito for quite some time. Please give the feature request a thumbs up and follow it for any updates. I will close this issue as a duplicate if you have no additional question.

Our docs include a section for private sessions on iOS. This will not cover Android and private sessions might not be suitable for your use case.

await Amplify.Auth.signInWithWebUI(
    options: const SignInWithWebUIOptions(
      pluginOptions: CognitoSignInWithWebUIPluginOptions(
        isPreferPrivateSession: true,
      ),
    ),
  );

@github-actions github-actions bot removed the pending-maintainer-response Pending response from a maintainer of this repository label Oct 9, 2024
@tyllark tyllark added auth Issues related to the Auth Category pending-maintainer-response Pending response from a maintainer of this repository question A question about the Amplify Flutter libraries and removed pending-triage This issue is in the backlog of issues to triage pending-maintainer-response Pending response from a maintainer of this repository labels Oct 9, 2024
@tyllark tyllark closed this as not planned Won't fix, can't repro, duplicate, stale Oct 11, 2024
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues related to the Auth Category question A question about the Amplify Flutter libraries
Projects
None yet
Development

No branches or pull requests

2 participants