A full-featured CRM built with React, shadcn/ui, and Supabase.
fix(auth): avoid double slash in recovery and invite callback links
Anibal Svarcas5cd78391402d
diff --git a/supabase/config.toml b/supabase/config.tomlindex 02fc4547..3fc90c9a 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 b01e69dc..eadf62d8 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 473031c0..5edf765a 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>