feat: MFA Enrollment (TOTP) by Lyokone · Pull Request #2238 · firebase/FirebaseUI-Android

/**
* Returns helper text for the current step.
*
* This is a convenience method for providing default instructions in custom UIs.
*/
fun getStepHelperText(): String = when (step) {
MfaEnrollmentStep.SelectFactor -> "Select a second authentication method to secure your account"
MfaEnrollmentStep.ConfigureSms -> "Enter your phone number to receive verification codes"
MfaEnrollmentStep.ConfigureTotp -> "Scan the QR code with your authenticator app"
MfaEnrollmentStep.VerifyFactor -> when (selectedFactor) {
MfaFactor.Sms -> "Enter the code sent to your phone"
MfaFactor.Totp -> "Enter the code from your authenticator app"
null -> "Enter your verification code"
}
MfaEnrollmentStep.ShowRecoveryCodes -> "Store these codes in a safe place. You can use them to sign in if you lose access to your authentication method."
}