logindude

1.0.2 • Public • Published

About

You can make it easy to login!

make your electorn app, but with login!

how does it works?

we use get method, and a api. so, you can do is:

login.login(username, password, url) and, your url is like example.com/

so, what happen is this:

we use "GET" method to send this data:

username, password

like this:

example.com/?username=username&password=password

and if the response was {"stats":"ok"} , the program will be send response called "true".

this can use in if's.

like this:

const loginer = require('logindude');
const logger = require('logitrightnowdude');
if (loginer.login(username, password, url) == true){
    logger.log("Works!");
} else {
    logger.error("Nope:(");
}

and more!

fixes

fixed:

  • bug no true and no false fixed.
  • added some more things ...

have issue ?

if you have issue, you can contact me in github!

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i logindude

    Weekly Downloads

    0

    Version

    1.0.2

    License

    none

    Unpacked Size

    1.52 kB

    Total Files

    3

    Last publish

    Collaborators

    • arashamini