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
Flutter Web AmplifyAuthCognito SignOut not working #4747
Comments
@BerndWessels Thank you for reporting the issue. I've attempted to replicate the problem using the steps you provided, but I was unable to reproduce the issue. Please note that IndexedDB in the developer tools does not automatically refresh. After signing out, please manually refresh the IndexedDB view using the refresh button to check if the credential still exists. Additionally, could you provide the code snippets for the signIn and signOut functions? |
@NikaHsn Thanks for your response. Here is my project to reproduce the issue https://github.com/BerndWessels/amplify_auth_issue Just edit the
when I sign out, it reloads the webpage but the user is not signed out :( Hope this will let you reproduce the issue, thanks. |
Hi @BerndWessels, thank you for providing your project. We will take a look when we get the chance and get back to you with any updates. |
Same Error, on ANDROID Runing Flutter on MacOs Flutter (Channel stable, 3.19.6, on macOS 14.4.1 23E224 darwin-arm64, locale es-CO) Pubspec dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter # Add this line
intl: ^0.18.1
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
flutter_form_builder: ^9.0.0
form_builder_validators: ^9.0.0
form_builder_image_picker: ^4.0.0
flutter_pw_validator: ^1.4.2
sleek_circular_slider: ^2.0.1
flutter_circular_text: ^0.3.1
footer: ^0.0.4
settings_ui: 2.0.2
provider: ^6.0.5
get_it: ^7.3.0
get: ^4.6.5
localization: ^2.1.0
amplify_api: ^1.8.0
amplify_api_dart: ^0.4.0
amplify_auth_cognito: ^1.8.0
amplify_authenticator: ^1.6.0
amplify_analytics_pinpoint: ^1.8.0
amplify_datastore: ^1.8.0
amplify_datastore_plugin_interface: ^1.8.0
amplify_flutter: ^1.8.0
amplify_storage_s3: ^1.8.0
aws_common: ^0.6.4 |
@jamontesg can you provide reproduction steps and sample code? |
@Jordan-Nelson I don't have the problem anymore. |
@jamontesg thanks for letting us know. We will attempt to reproduce the original issue with the provided sample app. |
Description
Signing out with
AmplifyAuthCognito
signOut()
does not sign out the current user.Works fine on Android, but does not work on the web :(
Feels like the redirect happens before the tokens have been cleared by the plugin in the browser, but that's just a guess.
Categories
Steps to Reproduce
AmplifyAuthCognito
signInWithWebUI()
to sign insignOut()
to sign outUser is not signed out, entries in index db are not deleted.
Screenshots
Platforms
Flutter Version
3.19.5
Amplify Flutter Version
1.7.0
Deployment Method
Amplify CLI
Schema
No response
The text was updated successfully, but these errors were encountered: