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

fix: ID-1538 Resolved issue with redirect logout not logging out of Magic #1646

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

haydenfowler
Copy link
Contributor

Summary

This PR resolves an issue where users were not being correctly logged out of their Magic wallet.

Detail and impact of the change

Changed

  • Passport: Fixed an issue where users were not correctly logged out of their Magic wallet when using the redirect logout mode.

@haydenfowler haydenfowler requested a review from a team as a code owner April 5, 2024 01:39
@haydenfowler haydenfowler added this pull request to the merge queue Apr 5, 2024
Comment on lines +233 to +235
await Promise.allSettled([
this.authManager.logout(),
this.magicAdapter.logout(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QQ related to this https://imtbl.slack.com/archives/C06SX4AUBNE/p1712280521367519 - Does this also need to be in the order of

  1. magicAdapter.logout()
  2. authManger.logout()

Also, do we need to prevent calling authManager.logout if the call to magicAdapter.logout failed? Currently, one of these could reject and the other could resolve - we do not check the results

Merged via the queue into main with commit abf4b95 Apr 5, 2024
11 checks passed
@haydenfowler haydenfowler deleted the feature/ID-1538-fix-magic-logout-issue branch April 5, 2024 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants