forgetPassword method
Future<OtpPromise>
forgetPassword(
- String phone, {
- Map<
String, String> ? additionalInfo, - OtpMagicRedirect magicRedirect = OtpMagicRedirect.auto,
Requests an otp for a forgotten password flow.
See login for the optional parameters.
Implementation
Future<OtpPromise> forgetPassword(
String phone, {
Map<String, String>? additionalInfo,
OtpMagicRedirect magicRedirect = OtpMagicRedirect.auto,
}) async {
final obj = await FiaPlatform.instance.otp(
'forgetPassword',
phone,
additionalInfo,
magicRedirect,
);
return OtpPromise(obj);
}