2.3.2 • Published 1 year ago
@taichi-yi/auth v2.3.2
Auth
自动获取“大健”和“冠通(赛盈)”的登录 token
下载
yarn add @taichi-yi/auth
或者
npm install @taichi-yi/auth
使用
获取冠通的 token
import { getGotenAuth } from '@taichi-yi/auth';
const foo = async () => {
const token = await getGotenAuth('18888888888', 'abcdefg')
.catch(err => {
console.error(err);
});
// token
// 8F57E801F4C9F4C197CE86B26D79XXX4DD19D00C3C52C2C4F378F5CDA51D725FF0AD0022EF1EF0773F6B10B6BB584FA670A97D8XXX731865649334A01490E2B3E6D229944F29D06F07922E0XXXB3838A51A5B4797AC400FD07725EA560BCC492895C6A7F608B43A8BD1XXX9C8860A878A0E11A27
}
获取赛盈的 token
import { getSaleYeeAuth } from '@taichi-yi/auth';
const foo = async () => {
const token = await getSaleYeeAuth('18888888888', 'abcdefg')
.catch(err => {
console.error(err);
});
// token
// 8F57E801F4C9F4C197CE86B26D79XXX4DD19D00C3C52C2C4F378F5CDA51D725FF0AD0022EF1EF0773F6B10B6BB584FA670A97D8XXX731865649334A01490E2B3E6D229944F29D06F07922E0XXXB3838A51A5B4797AC400FD07725EA560BCC492895C6A7F608B43A8BD1XXX9C8860A878A0E11A27
}
获取大健的 token
import { getGigaAuth } from '@taichi-yi/auth';
const foo = async () => {
const token = await getGigaAuth('18888888888', 'abcdefg')
.catch(err => {
console.error(err);
});
// token
// 3216bf4f227ccc33a66321162a
}
2.3.0
1 year ago
2.3.2
1 year ago
2.3.1
1 year ago
2.2.5
1 year ago
2.2.1
2 years ago
2.2.0
2 years ago
2.2.3
2 years ago
2.2.2
2 years ago
2.2.4
2 years ago
2.1.2
3 years ago
2.1.4
3 years ago
2.1.3
3 years ago
2.1.1
3 years ago
2.1.0
3 years ago
1.2.0
3 years ago
2.0.0
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago