Skip to content

Conversation

@vbudhram
Copy link
Contributor

@vbudhram vbudhram commented Jun 5, 2025

Because

  • Users that have 2FA enabled are unable to login with prompt=none

This pull request

  • Correctly checks for the verification level of session and continues the flow
  • Fixes a bug where it would call the promptNoneHandler twice

Issue that this pull request solves

Closes: https://mozilla-hub.atlassian.net/browse/FXA-11847
Closes: https://mozilla-hub.atlassian.net/browse/FXA-11804

Checklist

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Other information (Optional)

To test, enabled 2FA on your account and go through the prompt=none flow in 123Done.

@vbudhram vbudhram self-assigned this Jun 6, 2025
@vbudhram vbudhram marked this pull request as ready for review June 6, 2025 15:37
@vbudhram vbudhram requested a review from a team as a code owner June 6, 2025 15:37
if (!isEmail(email)) {
throw AuthUiErrors.EMAIL_REQUIRED;
}
console.log("Processing email submission:", email);
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete?

return;
}

if (promptNoneCallCount.current > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we know why it's being called twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It wasn't clear to me why it was being called twice, I suspect something was changing in the dependenices but couldn't narrow it down.

Copy link
Contributor

@chenba chenba left a comment

Choose a reason for hiding this comment

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

Thanks, @vbudhram

@vbudhram vbudhram merged commit f6d01d6 into main Jun 6, 2025
19 checks passed
@vbudhram vbudhram deleted the fxa-fix-none branch June 6, 2025 16:52
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.

3 participants