fix render issue

This commit is contained in:
h z
2024-12-03 16:36:32 +00:00
parent 22da3bc90d
commit 18a84123d3
8 changed files with 38 additions and 10 deletions

View File

@@ -3,7 +3,11 @@ import { UserManager } from "oidc-client-ts";
import {oidcConfig} from "./oicdConfig";
export const AuthContext = createContext();
export const AuthContext = createContext({
user: null,
login: () => {},
logout: () => {},
});
const AuthProvider = ({ children }) => {
const [user, setUser] = useState(null);