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

Add support for MFA signup and login flow #103

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

michaelschattgen
Copy link
Contributor

What kind of change does this PR introduce?

This pull request adds support for the multi factor authentication flow. I've tested all the methods through the Example application. Please let me know if I need to add/change anything.

@acupofjose
Copy link
Collaborator

@michaelschattgen this is an awesome PR - thank you for your efforts! Code / implementation all looks solid to me, really appreciate the comments and clarity.

Any chance you'd be willing to include tests too? That's about the only thing I see missing.

@michaelschattgen
Copy link
Contributor Author

Thank you! I expect to add tests somewhere in the upcoming days. 😌

@michaelschattgen
Copy link
Contributor Author

I've added the tests for both the StatelessClient and the GotrueClient. I've decided to just combine all MFA calls into 1 test since they all overlap, they all rely on a working Enroll, Verify and Challenge. Alongside these complete flow tests I've also added a couple failure tests.

Please let me know if this is sufficient!

@acupofjose
Copy link
Collaborator

Splendid work, seriously. Thanks for being so thorough - Happy to merge this featureset!

@acupofjose acupofjose merged commit 7758f32 into supabase-community:master Jul 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants