diff --git a/supabase/config.toml b/supabase/config.toml index b1d4da2..da1d5b7 100644 --- a/supabase/config.toml +++ b/supabase/config.toml @@ -40,9 +40,9 @@ file_size_limit = "50MiB" [auth] # The base URL of your website. Used as an allow-list for redirects and for constructing URLs used # in emails. -site_url = "http://localhost:3000" +site_url = "http://localhost:4321" # A list of *exact* URLs that auth providers are permitted to redirect to post authentication. -additional_redirect_urls = ["https://localhost:3000"] +additional_redirect_urls = ["https://localhost:4321"] # How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 seconds (one # week). jwt_expiry = 3600 @@ -58,6 +58,10 @@ double_confirm_changes = true # If enabled, users need to confirm their email address before signing in. enable_confirmations = false +[auth.email.template.recovery] +subject = "Password Reset" +content_path = "./supabase/templates/reset.html" + # Use an external OAuth provider. The full list of providers are: `apple`, `azure`, `bitbucket`, # `discord`, `facebook`, `github`, `gitlab`, `google`, `keycloak`, `linkedin`, `notion`, `twitch`, # `twitter`, `slack`, `spotify`, `workos`, `zoom`. diff --git a/supabase/templates/reset.html b/supabase/templates/reset.html new file mode 100644 index 0000000..99a6596 --- /dev/null +++ b/supabase/templates/reset.html @@ -0,0 +1,382 @@ + + + + + + Passowrd Reset Email + + + + + + + + + + + +