@white-matrix/matrix-universe-sso-sdk
v0.0.7
Published
## Install
Downloads
8
Keywords
Readme
chainide-sso-sdk
Install
yarn add @white-matrix/matrix-universe-sso-sdk
Usage
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>
);
Login
const { setUserModal } = useUserStore();
useEffect(() => {
setUserModal("login");
}, []);
Register
const { setUserModal } = useUserStore();
useEffect(() => {
setUserModal("register");
}, []);