AuthByMaxime is a package JSON wich help you to easily set up an authentication system in your website.
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.
npm i authbymaxime --save
- 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 to an account for an user
Kind: global function
Param | Type | Description |
---|---|---|
string |
||
password | string |
password |
Create an account for an user
Kind: global function
Param | Type | Description |
---|---|---|
username | string |
username |
string |
||
password | string |
password |
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. |
Kind: global function
Param | Description |
---|---|
: |