Skip to content

Commit

Permalink
chore(auth): Use input to signIn for TOTP setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Dillon Nys committed Jul 11, 2023
1 parent 24a28cc commit 27f6a73
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,8 @@ final class SignInStateMachine
TotpSetupDetails _createTotpSetupResult(String sharedSecret) =>
TotpSetupDetails(
sharedSecret: sharedSecret,
username: _user.username!,
// The username passed to `Amplify.Auth.signIn`
username: parameters.username,
);

/// Initiates registration of a TOTP authenticator for use in TOTP MFA.
Expand Down

0 comments on commit 27f6a73

Please sign in to comment.