0.1.2 • Published 6 years ago

auth-tjcu v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

auth-tjcu

TJCU authserver simulation

npm package npm downloads

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'
    }
  */
}
0.1.2

6 years ago

0.1.0

7 years ago