@gaoding/user-token
v0.1.0
Published
获取唯一用户凭证
Downloads
3
Keywords
Readme
@gaoding/user-token
获取唯一用户凭证
安装
yarn add @gaoding/user-token
# or
npm i @gaoding/user-token
使用
import { hasUserToken, getUserToken } from '@gaoding/user-token';
if (hasUserToken()) {
// 判断是否有用户凭证
}
// 获取用户凭证
const token = getUserToken();