@97kid/sso-react 中文文档教程
sso-react
内部系统
Installation
yarn add @97kid/sso-react
Usage
``` typescript react的Qkids sso组件 从“@97kid/sso-react”导入 SSO,{TokenData};
const 登录 = () => { const onSuccess = useCallback((data: TokenData) => { // 将 token 保存到 localStorage 和 redux }, []);
返回 (
sso-react
Qkids sso component for internal system
Installation
yarn add @97kid/sso-react
Usage
```typescript react import SSO, { TokenData } from '@97kid/sso-react';
const Login = () => { const onSuccess = useCallback((data: TokenData) => { // Save token to localStorage and redux }, []);
return (