HUSTPass auth library for Node.js. Node.js 华科统一身份认证库。
None.
yarn add node-hustpass
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.
*/
})();
👤 maniacata
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator