An open API service indexing awesome lists of open source software.

https://github.com/sacconazzo/express-sessions-mongo

simple express https srv with auth and sessions/cookies stored on MongoDB
https://github.com/sacconazzo/express-sessions-mongo

Last synced: 6 months ago
JSON representation

simple express https srv with auth and sessions/cookies stored on MongoDB

Awesome Lists containing this project

README

          

# express-sessions-mongo
simple express https srv with auth and sessions/cookies stored on MongoDB

- POST /login - login and create session [passing object with creadential {"user": "user", "password": "password"}]
- POST /data - storing some data [passing generic object]
- GET /session - get session info and data

try it on https://api.giona.tech

- example POST call https://api.giona.tech/login passing {"user": "test", "password": "test"} => then GET call https://api.giona.tech/session