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

feat: acquire locks around mfa methods #788

Merged
merged 1 commit into from
Sep 20, 2023
Merged

feat: acquire locks around mfa methods #788

merged 1 commit into from
Sep 20, 2023

Conversation

hf
Copy link
Contributor

@hf hf commented Sep 18, 2023

Given the changes introduced in #736, some of the MFA methods were exempt from acquiring the lock. However, this appears to have been a bad idea, especially around _getAuthenticatedAssuranceLevel which is used while the user is authenticated.

This PR adds the locks in the correct places.

Copy link
Contributor

@J0 J0 left a comment

Choose a reason for hiding this comment

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

Consider running prettier to minimize the diff

Otherwise lgtm as it looks like a mostly mechanical change

src/GoTrueClient.ts Outdated Show resolved Hide resolved
@hf
Copy link
Contributor Author

hf commented Sep 20, 2023

Tested on supabase.com.

@hf hf merged commit 4b6ec58 into master Sep 20, 2023
2 checks passed
@hf hf deleted the hf/acquire-locks-mfa branch September 20, 2023 12:10
@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.54.0 🎉

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.

3 participants