auth server for user registration and on login provided a JWT token containing information
- When you are using this need to change RSA keys
- Currently deployed at heroku https://black-ninja.herokuapp.com
- 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"
}
- 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
}