A full-featured CRM built with React, shadcn/ui, and Supabase.
fix(auth): keep template slash and adjust local site_url
Anibal Svarcasa3c31e123af0
diff --git a/supabase/config.toml b/supabase/config.tomlindex 3fc90c9a..02fc4547 100644--- a/supabase/config.toml+++ b/supabase/config.toml@@ -69,7 +69,7 @@ file_size_limit = "50MiB"enabled = true# The base URL of your website. Used as an allow-list for redirects and for constructing URLs used# in emails.-site_url = "http://localhost:5173/"+site_url = "http://localhost:5173"# A list of *exact* URLs that auth providers are permitted to redirect to post authentication.additional_redirect_urls = ["https://localhost:5173/auth-callback.html"]# How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 (1 week).diff --git a/supabase/templates/invite.html b/supabase/templates/invite.htmlindex eadf62d8..b01e69dc 100644--- a/supabase/templates/invite.html+++ b/supabase/templates/invite.html@@ -58,7 +58,7 @@choose your password, please click the link below.</p><p>- <a href="{{ .ConfirmationURL }}auth-callback.html" class="button"+ <a href="{{ .ConfirmationURL }}/auth-callback.html" class="button">Create my account</a></p>diff --git a/supabase/templates/recovery.html b/supabase/templates/recovery.htmlindex 5edf765a..473031c0 100644--- a/supabase/templates/recovery.html+++ b/supabase/templates/recovery.html@@ -60,7 +60,7 @@</p><p>You can reset your password by clicking the button below.</p><p>- <a href="{{ .ConfirmationURL }}auth-callback.html" class="button"+ <a href="{{ .ConfirmationURL }}/auth-callback.html" class="button">Reset your password</a></p>