@97kid/sso-react

Qkids sso component for internal system

Usage no npm install needed!

<script type="module">
  import 97kidSsoReact from 'https://cdn.skypack.dev/@97kid/sso-react';
</script>

README

sso-react

Qkids sso component for internal system

Installation

yarn add @97kid/sso-react

Usage

import SSO, { TokenData } from '@97kid/sso-react';

const Login = () => {
  const onSuccess = useCallback((data: TokenData) => {
    // Save token to localStorage and redux
  }, []);

  return (
    <SSO
      onSuccess={onSuccess}
      title="XXXX"
    />
  );
};