fix: window scoped state for token refresh
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user