confirmResetPassword method
Implementation
@override
Future<UpdatePasswordResult> confirmResetPassword(
{ConfirmResetPasswordRequest? request}) async {
try {
final Map<String, dynamic>? data =
(await (_channel.invokeMapMethod<String, dynamic>(
'confirmResetPassword',
<String, dynamic>{
'data': request != null ? request.serializeAsMap() : null,
},
)));
if (data == null)
throw AmplifyException(
AmplifyExceptionMessages.nullReturnedFromMethodChannel);
return _formatPasswordResponse(data);
} on PlatformException catch (e) {
throw castAndReturnPlatformException(e);
}
}