Skip to content

youngon-cn/auth-tjcu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

TJCU authserver simulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published