recoverUser method
Complete the process of recovering a user by adding an authenticator.
Sign the provided TRecoverUserBody with the client's stamp function and submit the request (POST /public/v1/submit/recover_user).
See also: stampRecoverUser.
Implementation
Future<TRecoverUserResponse> recoverUser({
required TRecoverUserBody input,
}) async {
final body = packActivityBody(
bodyJson: input.toJson(),
fallbackOrganizationId: input.organizationId ??
config.organizationId ??
(throw Exception(
"Missing organization ID, please pass in a sub-organizationId or instantiate the client with one.")),
activityType: 'ACTIVITY_TYPE_RECOVER_USER',
);
return await request<Map<String, dynamic>, TRecoverUserResponse>(
"/public/v1/submit/recover_user",
body,
(json) => TRecoverUserResponse.fromJson(
transformActivityResponse(json, 'RecoverUser')));
}