@cheyingwang/utils
ISC```js const { setToken } = useAuth({ authUrl: "", loginByTicketApi: ({ ticket }) => { console.log(ticket); return xxxApi.then((token) => { // 登录后 setToken(token); }); }, }); ```
85
Security score
0 known advisories in v1.0.10
Weekly downloads
—
Unpacked size
18.3 kB
Dependencies
2
Last publish
3 years ago
Security advisories
No known vulnerabilities affect v1.0.10.