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

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

Fields

  • provider - The provider.
  • options - The options.
    • redirect_to - The redirect URL.
    • scopes - The scopes.
    • query_params - The query parameters.
    • skip_browser_redirect - Whether to skip the browser redirect.

Summary

Types

@opaque changeset()
@type t() :: %Supabase.GoTrue.Schemas.SignInWithOauth{
  options: %Supabase.GoTrue.Schemas.SignInWithOauth.Options{
    query_params: map(),
    redirect_to: String.t() | nil,
    scopes: [String.t()] | nil,
    skip_browser_redirect: boolean()
  },
  provider: Supabase.GoTrue.User.Identity.providers()
}

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

options_to_query(sign_in_with_oauth)