Supabase.GoTrue.Schemas.ResendParams (supabase_gotrue v0.5.2)

View Source

Parameters for resending confirmation or verification emails/SMS.

This schema is used by Supabase.GoTrue.resend/3 to define the parameters for resending verification codes or confirmation emails to users.

Fields

  • type - The type of verification to resend (:sms, :signup, :phone_change, :email_change)
  • options - Additional options:
    • email_redirect_to - URL to redirect after email confirmation
    • captcha_token - Token from CAPTCHA verification if enabled

Summary

Types

options()

@type options() :: %Supabase.GoTrue.Schemas.ResendParams.Options{
  captcha_token: String.t() | nil,
  email_redirect_to: URI.t() | nil
}

otp_type()

@type otp_type() :: :sms | :signup | :phone_change | :email_change

t()

@type t() :: %Supabase.GoTrue.Schemas.ResendParams{
  options: options(),
  type: otp_type()
}

Functions

parse(source \\ %__MODULE__{}, attrs)