Skip to content

sakshibobade21/authentication-API

Repository files navigation

Authentication-API

Contents

Description


This is a REST API developed using Node.js that implememts the user authentication. Following are the functionalities available:

  • SignUp
  • Login
  • JWT Auth
  • Logout from current/other/all devices

Requirements


  • Node.js

Documentation


Install Dependencies

npm install

Run

npm start

Routes

  Route: http://localhost:3000/user/register/
    Request Type: POST
    Body:
        {
            "username":"johndoe",
            "name": "John Doe",
            "email":"johndoe@gmail.com"
            "password":"qwertyuiop"
        }
    Route: http://localhost:3000/user/login/
    Request Type: POST
    Body:
        {
            "username":"johndoe",
            "password":"qwertyuiop"
        }
    Route: http://localhost:3000/user/test/
    Request Type: GET
    Route: http://localhost:3000/user/logout/
    Request Type: GET
    Route: http://localhost:3000/user/logout-all-devices/
    Request Type: GET
    Route: http://localhost:3000/user/logout-other-devices/
    Request Type: GET

About

Rest API for jwt authentication

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published