Application Load

IAuthOtpResendResponse

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

IAuthOtpResendResponse

Delivery channel and resend delay.

app/interfaces/orionplace/accounts/IEmailVerification.ts
TypeScript
export interface IAuthOtpResendResponse {
  // Field or general errors; null on success.
  form_errors: Record<string, ApiFormError[]> | null;
  // Success message, or null.
  success_message: string | null;
  // Delivery channel and time before another request.
  page_data: {
    // Seconds until another request is allowed; on a cooldown error, seconds
    // still remaining.
    otp_delay: number;
    // Delivery channel: `sms`, `call` or `email`, returned on success. It can
    // change when the provider uses a fallback.
    code_type?: 'sms' | 'call' | 'email';
    // Masked destination, only when `code_type` is `email`.
    email?: string;
  } | null;
}