Skip to content

auth server for user registration and on login provided a JWT token containing information

Notifications You must be signed in to change notification settings

prakharverma01/black-ninja

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

black-ninja

auth server for user registration and on login provided a JWT token containing information

Notes

  1. When you are using this need to change RSA keys
  2. Currently deployed at heroku https://black-ninja.herokuapp.com
  3. Register user POST API: https://black-ninja.herokuapp.com/api/user with body as
  {
    "firstname":"Rekha",
    "lastname":"Menon",
    "email":"[email protected]",
    "phone":"9876890156",
    "companyName":"HI",
    "password":"password"
  }
  1. Login for a user POST API: https://black-ninja.herokuapp.com/api/user/login
  {
    "email":"[email protected]",
    "password":"password",
    "companyName":"HI"
  }

returns access token and other details :

{
  "accessToken": "access-token",
  "tokenType": "bearer",
  "expiresIn": 1800
}

About

auth server for user registration and on login provided a JWT token containing information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages