A full-featured CRM built with React, shadcn/ui, and Supabase.
fix(auth): address review feedback on reset password flow
Anibal Svarcas34242d1de450
diff --git a/src/components/atomic-crm/providers/fakerest/authProvider.ts b/src/components/atomic-crm/providers/fakerest/authProvider.tsindex b26d2bde..f7258dc4 100644--- a/src/components/atomic-crm/providers/fakerest/authProvider.ts+++ b/src/components/atomic-crm/providers/fakerest/authProvider.ts@@ -46,12 +46,12 @@ export const authProvider: AuthProvider = {resetPassword: async () => {// FakeRest doesn't send real emails. Keep this async to mimic network latency.await new Promise((resolve) => setTimeout(resolve, 250));- return Promise.resolve();+ return;},setPassword: async () => {// FakeRest doesn't persist auth credentials. This is only for local UX testing.await new Promise((resolve) => setTimeout(resolve, 250));- return Promise.resolve();+ return;},logout: () => {localStorage.removeItem(USER_STORAGE_KEY);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).