@kapibalaland/cli-login
v1.0.0
Published
连接派登录工具
Downloads
3
Readme
login
description
get ad\token\device_id in file: .login
dependency
npm pnpm i
usage
node login.js
or
npm run login
logout:
npm run logout
or delete .login file
用函数调用
const login = require('./login')
console.log('start')
const f = await login.asyncLogin();
if (!f) {
console.log('login failed')
return
}
if (f) {
console.log('login success')
}
const {ad, token, device_id} = await login.adToken();
console.log(ad, token, device_id)