-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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(auth, android)!: correct error messages for finalizeMultiFactorEnrollment #7567
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
cf421c6
to
95dd587
Compare
Hello 👋, this PR has been opened for more than 2 months with no activity on it. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 15 days until this gets closed automatically |
I have a breaking change release pending right now, you marked this as a breaking change which is one of the reasons it stuck in the queue (thank you for your patience!) |
…rollment BREAKING CHANGE: multifactor error messages were auth/unknown before on android Now they will correctly come through as auth/invalid-verification-code If you were relying on the previous auth/unknown codes you will need to update your error handling code
95dd587
to
f715192
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thank you, and thanks again for your patience.
I've rebased the commit to the current main and I reworded the commit message to add a prescriptive "BREAKING CHANGE" block for developers - this is consumed by our automated release process and goes into the CHANGELOG file for people
No code changes were made on your patch
I pushed those changes and once CI does it's thing I can merge this. Hoping for release almost immediately
Once this is merged, working through the rest of the MFA / TOTP stuff is the priority. I believe I have mentioned it elsewhere but this is more difficult than it seems, as the auth emulator we carefully switched to has no TOTP support. So we need to re-add support in the e2e harness for direct use of cloud auth vs the auth emulator |
android e2e finally made it past the auth part of the suite, and it passes locally. Ready to go! |
Description
Use
promiseRejectAuthException
and add logging consistent with other methods.Before
After
Arguably a breaking change since the errror codes thrown change.
Release Summary
Errors thrown by
finalizeMultiFactorEnrollment
on Android are no longer of codeauth/unknown
Checklist
Android
iOS
e2e
tests added or updated inpackages/\*\*/e2e
jest
tests added or updated inpackages/\*\*/__tests__
Test Plan
Tested in Android emulator
🔥