invoke
suspend operator fun invoke(email: String? = null, phoneNumber: String? = null, channel: TFAChannel = TFAChannel.EMAIL): ResultS1SDK<Boolean, ErrorS1SDK>
This function should be called when the user wants to login with email and password or phone number and code and have the two factor authentication enabled.
Return
ResultS1SDK<Boolean, ErrorS1SDK> for know if the request is successful only returns a Boolean that indicates if the user have the two factor authentication enabled or not.
Parameters
email
String The user email. Null by default.
phoneNumber
String The user phone number. Null by default.
channel
TFAChannel The channel used to send the code. Default is TFAChannel.EMAIL.