Supabase (Supabase v0.1.0) View Source
Elixir library for Supabase
.
Link to this section Summary
Functions
Returns a client that can be used for functions of the GoTrue library.
Entrypoint for the Postgrest library
Entry point for the Storage API
Entry point for the Storage API for usage in a user context
Link to this section Functions
Returns a client that can be used for functions of the GoTrue library.
Example
iex> Supabase.auth() |> GoTrue.settings()
%{
"autoconfirm" => false,
"disable_signup" => false,
"external" => %{
"azure" => false,
"bitbucket" => false,
"email" => true,
"facebook" => false,
"github" => true,
"gitlab" => false,
"google" => false,
"saml" => false
},
"external_labels" => %{}
}
Entrypoint for the Postgrest library
Example
Supabase.init(access_token: jwt)
|> Postgrestex.from("profiles")
|> Postgrestex.call()
Entry point for the Storage API
Entry point for the Storage API for usage in a user context
Example
Supabase.storage(access_token)
|> Supabase.Storage.from("avatars")
|> Supabase.Storage.download("avatar1.png")