2.2.1 • Published 2 years ago

node-hustpass v2.2.1

Weekly downloads
18
License
MIT
Repository
-
Last release
2 years ago

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

2.2.1

2 years ago

2.2.0

2 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago