auth-tjcu
v0.1.2
Published
TJCU authserver simulation
Downloads
4
Readme
auth-tjcu
TJCU authserver simulation
How to install:
npm install --save auth-tjcu
// or
yarn add auth-tjcu
Usage:
const authTJCU = require('auth-tjcu');
async function login() {
const result = await authTJCU('http://j.tjcu.edu.cn/caslogin.jsp', {
username: 'stuid',
password: 'pwd',
})
console.log(result);
/*
resilt will be
{
state: 1,
cookies: 'cookies'
}
or
{
state: 0,
msg: 'message'
}
*/
}