Packages

Integration with the Auth API from Supabase services. Provide authentication with MFA, password and magic link.

Current section

Files

Jump to
supabase_auth lib supabase auth schemas oauth update_client_params.ex
Raw

lib/supabase/auth/schemas/oauth/update_client_params.ex

defmodule Supabase.Auth.Schemas.OAuth.UpdateClientParams do
@moduledoc false
import Ecto.Changeset
@types %{
client_name: :string,
client_uri: :string,
logo_uri: :string,
redirect_uris: {:array, :string},
grant_types: {:array, :string},
token_endpoint_auth_method: :string
}
@spec parse(map()) :: {:ok, map()} | {:error, Ecto.Changeset.t()}
def parse(attrs) do
{%{}, @types}
|> cast(attrs, Map.keys(@types))
|> apply_action(:parse)
end
end