@white-matrix/matrix-universe-sso-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

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");
}, []);

Readme

Keywords

none

Package Sidebar

Install

npm i @white-matrix/matrix-universe-sso-sdk

Weekly Downloads

2

Version

0.0.7

License

MIT

Unpacked Size

130 kB

Total Files

80

Last publish

Collaborators

  • shuuuuting
  • hexi1997
  • kilru
  • lucklyric
  • xiadd