Skip to content

filiptypjeu/npm-web-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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");

About

NPM package for handling cookies and logins on web

Resources

Stars

Watchers

Forks

Packages

No packages published