Skip to content

HUSTPass auth library for Node.js. Node.js 华科统一身份认证库。

Notifications You must be signed in to change notification settings

ManiaciaChao/node-hustpass

Repository files navigation

Welcome to node-hustpass 👋

Version License: MIT

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

About

HUSTPass auth library for Node.js. Node.js 华科统一身份认证库。

Resources

Stars

Watchers

Forks

Packages

No packages published