authv3.2

auth module

User identity & server verification.

Available Methods

sdk.auth.getInitData()
sdk.auth.verifyOnServer()

Example Usage

import { usePoremi } from '@poremi/react-sdk';

function App() {
  const { sdk } = usePoremi();

  useEffect(() => {
    sdk.auth.getInitData().then(data => {
      console.log('User:', data.userKey);
    });
  }, []);
}

Try in Playground

🔒 Log in to open this example in the interactive playground.