authbymaxime

1.0.5 • Public • Published

What is this ?

AuthByMaxime is a package JSON wich help you to easily set up an authentication system in your website.

How it works ?

This package just needs some details, like the user's email or his password and that's it. All the logical part is managing by the packet.

How to use it ?

npm i authbymaxime --save

What can I use with this package ?

functions

login(email, password)

Login to an account for an user

register(username, email, password)

Create an account for an user

checkLogin(token)

Check if the user is logged MIDDLEWARE

loosingPassword(email)

login(email, password)

Login to an account for an user

Kind: global function

Param Type Description
email string email
password string password

register(username, email, password)

Create an account for an user

Kind: global function

Param Type Description
username string username
email string email
password string password

checkLogin(token)

Check if the user is logged - MIDDLEWARE

Kind: global function

Param Type Description
token string [token] - Token of the user, he gets it after register or login.

loosingPassword(email)

Kind: global function

Param Description
email :

Readme

Keywords

none

Package Sidebar

Install

npm i authbymaxime

Weekly Downloads

7

Version

1.0.5

License

ISC

Unpacked Size

7.45 kB

Total Files

9

Last publish

Collaborators

  • maximevives