GithubHelp home page GithubHelp logo

node-auth's Introduction

node-auth

curl

curl -v -X POST localhost:3000/register -H 'Content-type: application/json' \
-d '{"email": "[email protected]", "name": "Shahan", "password": "123Abc456", "confirmPassword": "123Abc456"}'
curl -v -X POST localhost:3000/login -H 'Content-type: application/json' \
-d '{"email": "[email protected]", "password": "123Abc456"}' \
--cookie 'sid=s%3AN22BOsysG0Z7Z7i6fIX3XYLGA2oLrLSx.TIayeV8Y5CSzQQAAM%2FrIswDbM2YYobvBX5tMcnGS0NY'

--cookie # for cookie
-v # for Verbose
-X # for methods like GET, PUT, POST, DELETE
-H # for headers like 'Content-type: application/json'
-d # for payload

mongo

# docker
docker exec -it node-auth_db_1 mongo -u admin -p secret auth
# flags
-it # for interactive
-u # for username
-p # password
auth # is the name of database

# mongo terminal commands
db.users.find({}).pretty()
db.users.deleteMany({})

redis

docker exec -it node-auth_cache_1 redis-cli -a secret
# flags
-it # for interactive
redis-cli # to load redis command line interface
-a # cli password

# redis commands
scan 0
get "sess:lHoGnDimxq3Lz5j0cRWuEp3wivXtgSBB"
ttl "sess:lHoGnDimxq3Lz5j0cRWuEp3wivXtgSBB"
del "sess:lHoGnDimxq3Lz5j0cRWuEp3wivXtgSBB"

node-auth's People

Watchers

Shahan Ahmed Khan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.