Skip to content

Conversation

Xiaoshouzi-gh
Copy link
Contributor

@Xiaoshouzi-gh Xiaoshouzi-gh commented Jun 4, 2023

If TOTP MFA enrolled, add specific totpMfaInfo in the error list when sign-in with the following first factors -

  • Any provider
  • Sign in with email link
  • reauthentication

Updated the sample app to reflect the changes.

@google-oss-bot
Copy link

1 Warning
⚠️ Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)

Generated by 🚫 Danger

@Xiaoshouzi-gh Xiaoshouzi-gh marked this pull request as ready for review June 5, 2023 14:51
@@ -425,39 +425,58 @@ - (void)linkWithAuthProvider:(id<AuthProvider>)authProvider retrieveData:(BOOL)r
[displayNameString appendString:tmpFactorInfo.displayName];
[displayNameString appendString:@" "];
}
[self showTextInputPromptWithMessage:[NSString stringWithFormat:@"Select factor to link\n%@", displayNameString]
[self showTextInputPromptWithMessage:[NSString stringWithFormat:@"Select factor to sign in\n%@", displayNameString]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why change to sign in?

@@ -229,7 +229,68 @@ - (void)reauthenticateEmailPassword {
completion:^(FIRAuthDataResult *_Nullable result,
NSError *_Nullable error) {
if (error) {
[self logFailure:@"reauthicate with email password failed." error:error];
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems the code is duplicated several times. Not a blocker though.

@Xiaoshouzi-gh Xiaoshouzi-gh merged commit 0db2d0f into totp-release-0413 Jun 5, 2023
@Xiaoshouzi-gh Xiaoshouzi-gh deleted the totp-firstfactor branch June 5, 2023 20:04
@firebase firebase locked and limited conversation to collaborators Jul 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants