node-hustpass
v2.2.1
Published
HUSTPass auth library for Node.js. Node.js 华科统一身份认证库。
Downloads
4
Readme
HUSTPass auth library for Node.js. Node.js 华科统一身份认证库。
Requirement
None.
Install
yarn add node-hustpass
Usage
const { init } = require("node-hustpass");
(async () => {
const { fetch, jar, login } = await init();
await login({
username: "U201X12345",
password: "QZBSQZZH",
url:
"https://pass.hust.edu.cn/cas/login?service=http%3A%2F%2Fhubs.hust.edu.cn%2Fhustpass.action"
});
/**
* do something cool here!
* you can simply use this `fetch` method,
* or pass `jar` into your own request library.
*/
})();
Author
👤 maniacata
Show your support
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator