yarn add @white-matrix/matrix-universe-sso-sdk
Warp UserProvider in root
import React from "react";
import ReactDOM from "react-dom/client";
import { UserProver } from '@white-matrix/matrix-universe-sso-sdk';
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
<UserProver>
<App />
</UserProver>
</React.StrictMode>
);
const { setUserModal } = useUserStore();
useEffect(() => {
setUserModal("login");
}, []);
const { setUserModal } = useUserStore();
useEffect(() => {
setUserModal("register");
}, []);