Supabase.GoTrue.Schemas.SignInWithIdToken behaviour (supabase_gotrue v0.3.10)

This schema is used to validate and parse the parameters for signing in with an ID token.

Fields

  • provider - The provider.
  • token - The token.
  • access_token - The access token.
  • nonce - The nonce.
  • options - The options.
    • captcha_token - The captcha token.

Summary

Types

@opaque changeset()
@type t() :: %Supabase.GoTrue.Schemas.SignInWithIdToken{
  access_token: String.t() | nil,
  id: term(),
  nonce: String.t() | nil,
  options:
    %Supabase.GoTrue.Schemas.SignInWithIdToken.Options{
      captcha_token: String.t() | nil
    }
    | nil,
  provider: :google | :apple | :azure | :facebook,
  token: String.t()
}

Callbacks

Link to this callback

changeset(t, map)

(optional)
@callback changeset(t(), map()) :: changeset()
Link to this callback

parse(map)

(optional)
@callback parse(map()) :: {:ok, t()} | {:error, changeset()}

Functions

Link to this function

to_sign_in_params(signin)