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: callbacks in auth flow no longer unsubscribed too early #192

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

cameronvoell
Copy link
Contributor

@cameronvoell cameronvoell commented Dec 21, 2023

Callbacks for identity creation and enabling were added recently in the following PR:

Though that PR's automated tests verified the flow worked with randomly generated identity flow, we did not have a External Wallet SDK signing to test against to verify that the callbacks returned as expected.

In progress work on connecting external wallets revealed that during the regular auth flow, we were unsubscribing from the. new callbacks too early.

The fix in this PR can be tested via the following test branch which has the fix in this PR as well as external wallet connect button: callbacks-test-branch-with-wallet-connect

In addition to moving the subscription removal to a later time, we also added error handling so that if a user rejects a signing request, that callback subscriptions are still removed as expected.

@cameronvoell cameronvoell requested a review from a team as a code owner December 21, 2023 21:54
@cameronvoell
Copy link
Contributor Author

@kele-leanes tagging you in case you see any issues with the PR here since you worked on this previously. 🙏

Copy link
Contributor

@nplasterer nplasterer left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@cameronvoell cameronvoell merged commit 2ca4805 into main Dec 21, 2023
4 of 5 checks passed
@cameronvoell cameronvoell deleted the cameronvoell/fix-callbacks-in-auth-flow branch December 21, 2023 22:43
Copy link
Contributor

🎉 This PR is included in version 1.23.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants