emailVerifyInit method
Deprecated. Use InitialSignup or SendLoginLink instead.
Sign the provided TEmailVerifyInitBody with the client's stamp function and submit the request (POST /public/v1/email_verify_init).
See also: stampEmailVerifyInit.
Implementation
Future<TEmailVerifyInitResponse> emailVerifyInit({
required TEmailVerifyInitBody 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_EMAIL_VERIFY_INIT',
);
return await request<Map<String, dynamic>, TEmailVerifyInitResponse>(
"/public/v1/email_verify_init",
body,
(json) => TEmailVerifyInitResponse.fromJson(
transformActivityResponse(json, 'EmailVerifyInit')));
}