Supabase.GoTrue.Schemas.SignInWithOTP (supabase_gotrue v0.4.1)

This schema is used to validate and parse the parameters for signing in with OTP.

Fields

  • email - The user's email.
  • phone - The user's phone.
  • options - The options for signing in with OTP.
    • data - The data for the sign in.
    • email_redirect_to - The redirect URL for the email.
    • captcha_token - The captcha token.
    • channel - The channel for the OTP.

Summary

Types

options()

@type options() :: %Supabase.GoTrue.Schemas.SignInWithOTP.Options{
  captcha_token: String.t(),
  channel: String.t(),
  data: map(),
  email_redirect_to: String.t(),
  should_create_user: boolean()
}

t()

@type t() :: %Supabase.GoTrue.Schemas.SignInWithOTP{
  email: String.t(),
  options: options(),
  phone: String.t()
}

Functions

parse(attrs)

to_sign_in_params(signin)

to_sign_in_params(signin, code_challenge, code_method)