web-login-manager
v1.0.2
Published
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.
Downloads
2
Readme
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");