web-login-manager
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

web-login-manager

Package for logging into basic websites. Can handle csrfmiddlewaretoken in login forms, all cookies on the site (for example csrftoken and sessionid cookies). The class instance will store, use and update cookies automatically.

Usage

const app = new WebLoginManager({
      baseURL: "https://myapp.com",
      username: "myusername",
      password: "mysecurepassword",
      loginPath: "/login/",
      sessionidCookieName: "sessionid",
      middlewaretokenName: "csrfmiddlewaretoken",
});
await app.fetch("/my/path?q=keyword");

Readme

Keywords

none

Package Sidebar

Install

npm i web-login-manager

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

13 kB

Total Files

4

Last publish

Collaborators

  • filiptypjeu