proxyInitOtp method

Future<ProxyTInitOtpResponse> proxyInitOtp({
  1. required ProxyTInitOtpBody input,
})

Produce a SignedRequest from ProxyTOAuthLoginBody by using the client's stamp function.

See also: OAuthLogin. Initialize an OTP (email or SMS) for a user.

Sign the provided ProxyTInitOtpBody with the client's stamp function and submit the request (POST /v1/otp_init).

See also: stampInitOtp.

Implementation

/// Initialize an OTP (email or SMS) for a user.
///
/// Sign the provided `ProxyTInitOtpBody` with the client's `stamp` function and submit the request (POST /v1/otp_init).
///
/// See also: `stampInitOtp`.

Future<ProxyTInitOtpResponse> proxyInitOtp({
  required ProxyTInitOtpBody input,
}) async {
  return await authProxyRequest<ProxyTInitOtpBody, ProxyTInitOtpResponse>(
      "/v1/otp_init", input, (json) => ProxyTInitOtpResponse.fromJson(json));
}