config for oauth

This commit is contained in:
h z
2024-12-04 14:06:30 +00:00
parent 321dea202d
commit 55ddd17bf0
10 changed files with 76 additions and 24 deletions

View File

@@ -2,12 +2,18 @@ import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import AuthProvider from "./AuthProvider";
import {config} from "./confs/appConfig";
//ReactDOM.render(<App />, document.getElementById("root"));
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<AuthProvider>
<App />
</AuthProvider>
);
const initializeApp = async () => {
await config();
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<AuthProvider>
<App />
</AuthProvider>
);
}
initializeApp();