@gilgamesh_fr/account
v0.0.3
Published
user and session token management, for node server-side
Readme
DEVELOPMENT IN PROGRESS..
account
user and session token management, for node server-side
Description
This javascript library is designed for node.js.
It uses :
- Express.js for routing
- sqlite3 for database management
- argon2 for password hashcode generation
INSTALLATION
npm install @gilgamesh/account
npm install --save @gilgamesh/account
API
Here is the documentation of the API offered by this lib.
user
This API manage user account, by user himself and an administrator.
POST /user/signup
Description:
Create a new user account
Params:
- username:string
- password:string
- email:string
Returns:
json : {'msg':string, 'valid':boolean}POST /user/checkuser
GET /user/info
POST /user/delete
users
This API manage users account, by user an administrator only.
GET /users/list
GET /users/info
TESTS
Tests use Python and requests package
First, install request package :
python -m pip install requests
then call npm test
