diff --git a/lib/supabase/go_true.ex b/lib/supabase/go_true.ex index 1b39766..621ea45 100644 --- a/lib/supabase/go_true.ex +++ b/lib/supabase/go_true.ex @@ -258,6 +258,11 @@ defmodule Supabase.GoTrue do opts = [name: unquote(client), client_info: config] Supabase.Client.start_link(opts) end + |> then(fn + {:ok, pid} -> {:ok, pid} + {:error, {:already_started, pid}} -> {:ok, pid} + err -> err + end) end unquote(gotrue_functions)