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

[Auth] Refactor MultiFactor.swift #14241

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

ncooke3
Copy link
Member

@ncooke3 ncooke3 commented Dec 10, 2024

Manual tests:

  • Phone MFA login
  • TOTP MFA login

#no-changelog

@ncooke3 ncooke3 marked this pull request as ready for review January 4, 2025 00:50
@ncooke3 ncooke3 added this to the 11.7.0 - M158 milestone Jan 4, 2025
Copy link
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

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

Consider my comments optional, since this is already a good step forward.

}
}
}
request = FinalizeMFAEnrollmentRequest(idToken: user.rawAccessToken(),
Copy link
Member

Choose a reason for hiding this comment

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

Consider moving request logic to a helper function so we can keep the let.


guard let request else {
// Assertion is not a phone assertion or TOTP assertion.
return
Copy link
Member

Choose a reason for hiding this comment

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

Let's log an error or maybe even a fatal, since this should never happen.

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

Successfully merging this pull request may close these issues.

3 participants