forgotPassword method
This is used to initiate a forgot password request
Implementation
Future forgotPassword() async {
final paramsReq = {
'ClientId': pool.getClientId(),
'Username': username,
};
if (_clientSecretHash != null) {
paramsReq['SecretHash'] = _clientSecretHash;
}
if (getUserContextData() != null) {
paramsReq['UserContextData'] = getUserContextData();
}
return await client!.request('ForgotPassword',
await _analyticsMetadataParamsDecorator.call(paramsReq));
}