fix: window scoped state for token refresh

This commit is contained in:
2025-05-30 21:25:39 +02:00
parent 8a28fca3d9
commit 03697b2f67
4 changed files with 20 additions and 5 deletions

View File

@ -4,6 +4,13 @@ import App from "./App";
import "./index.css";
import { OAuthProvider } from "./context/oauth/provider";
if (typeof window.guard !== "object") {
window.guard = {
refreshing: false,
refreshQueue: [],
};
}
const root = document.getElementById("root")!;
createRoot(root).render(