diff --git a/src/react/client.tsx b/src/react/client.tsx index 886529a..1ee4512 100644 --- a/src/react/client.tsx +++ b/src/react/client.tsx @@ -250,7 +250,6 @@ export function AuthProvider({ (await storageGet(REFRESH_TOKEN_STORAGE_KEY)) ?? null; if (refreshToken !== null) { setIsRefreshingToken(true); - await storageRemove(REFRESH_TOKEN_STORAGE_KEY); await verifyCodeAndSetToken({ refreshToken }).finally(() => { setIsRefreshingToken(false); }); diff --git a/test/src/main.tsx b/test/src/main.tsx index e8c2da3..885debd 100644 --- a/test/src/main.tsx +++ b/test/src/main.tsx @@ -6,7 +6,12 @@ import ReactDOM from "react-dom/client"; import App from "./App.tsx"; import "./index.css"; -const convex = new ConvexReactClient(import.meta.env.VITE_CONVEX_URL as string); +// set convex_client_verbose_auth_test to see logs in prod +const verboseAuth = !!localStorage.getItem("convex_client_verbose_auth_test"); +const convex = new ConvexReactClient( + import.meta.env.VITE_CONVEX_URL as string, + { verbose: verboseAuth }, +); ReactDOM.createRoot(document.getElementById("root")!).render(