Supabase.Auth.Schemas.OAuth.AdminClient (supabase_auth v1.0.1)

View Source

Schema for OAuth client representation in admin operations.

Admin OAuth clients contain the full client configuration as returned by the GoTrue admin API, including secrets, redirect URIs, grant types, and authentication methods.

Summary

Types

t()

@type t() :: %{
  client_id: String.t(),
  client_name: String.t(),
  client_secret: String.t() | nil,
  client_type: String.t(),
  token_endpoint_auth_method: String.t(),
  registration_type: String.t(),
  client_uri: String.t() | nil,
  logo_uri: String.t() | nil,
  redirect_uris: [String.t()],
  grant_types: [String.t()],
  response_types: [String.t()],
  scope: String.t() | nil,
  created_at: String.t(),
  updated_at: String.t()
}

Functions

parse(attrs)

@spec parse(map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}

parse_list(data)

@spec parse_list([map()]) :: {:ok, [t()]} | {:error, term()}