-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
base: main
Are you sure you want to change the base?
Conversation
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.
Consider my comments optional, since this is already a good step forward.
} | ||
} | ||
} | ||
request = FinalizeMFAEnrollmentRequest(idToken: user.rawAccessToken(), |
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.
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 |
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.
Let's log an error or maybe even a fatal
, since this should never happen.
Manual tests:
#no-changelog