Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harshit-paneri/role-based-auth
https://github.com/harshit-paneri/role-based-auth
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/harshit-paneri/role-based-auth
- Owner: harshit-paneri
- Created: 2024-01-17T08:57:50.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-18T11:27:53.000Z (12 months ago)
- Last Synced: 2024-04-18T05:23:27.854Z (9 months ago)
- Language: JavaScript
- Size: 619 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Role Based Access Control
### Install
``` git clone https://github.com/harshit-paneri/role-based-auth.git ```
``` cd role-based-auth ```
``` npm install ```
``` npm start ```
### All Endpoints
- Register Admin
``/api/users/register-admin``![Alt text](image/register-admin.png)
- Register User
``/api/users/register-user``![Alt text](image/register-user.png)
- Register Super User
``/api/users/register-super-user``
![Alt text](image/register-super-user.png)- Login User
``/api/users/login-user``![Alt text](image/login-user.png)
- Bad Request![Alt text](image/login-user-bad-request.png)