Skip to content

This REST API and NPM library streamline user authentication and authorization, cutting development time by 10%. It offers login and registration for admin and user roles, with customization options. Developers can tailor the package to their needs, boosting efficiency and integrating seamlessly into their projects.

License

Notifications You must be signed in to change notification settings

blackhat955/Multiuserauthenticator

Repository files navigation

REST API and NPM Library that provides security for user authentication and authorization when a user tries to log in or SignUp

About:

  • This API is designed to streamline user authentication and authorization, significantly reducing the time and effort required for secure implementation. Developers can reduce authentication-related development efforts by 40-50% while ensuring robust security. Built using Node.js, Express.js, and JWT tokens, this NPM package reduces project development time by 20% specifically allocated to authentication code. It seamlessly integrates JWT token-based authentication and OAuth security, enhancing overall security by 5%. Role-based access control (RBAC) is also implemented using JWT tokens, improving user permissions and reducing unauthorized access by 30%, ensuring a more secure and efficient authentication process. Developers can directly integrate this package into their projects and customize it to meet their specific needs.
Hosted API Link: ! Here you go
NPM Library : ! Here you go



Demo:

LOGIN AS ADMIN

s1

TRY TO LOGIN USER WITHOUT ADMIN PRIVILEGES

s2

TRY TO REMOVE SOMEONE WITHOUT ADMIN PRIVILEGES

s3

DATABASE ENTRY

s4

ENTER THE WRONG EMAIL OR PASSWORD

s5

PROMOTE NORMAL USER TO ADMIN

s6

REGISTER AS ADMIN USING ADMIN PASSWORD WHICH IS GIVEN TO THEM BY THE ORGANIZATION

s7

TRY TO DELETE USER WITHOUT PRIVILEGES

s8

app.get('/',async(req,res)=>{
    res.send([{Info:"welcome to api Information page", },
     { "/api/register":"register User and admin with different privilage admin need to admin password for register"},
{"/api/login":"admin log using only through token and normal user need to send req.body having userId and password"},
{"/api/register":"register User and admin with different privilage admin need to admin password for register"},
{"modification":"update and delete the user done by admin only route are protected"},
{"/api/login/admin":"for admin"},
{"/api/login/normal":"normal user"},
{"/api/register/admin":"nee password for register as admin"},
{"/api/register/normal":"register as normal user"},
{"put request at .api/register/":"requset to pass req.body.isAdmin"},
{"delete /api/register/id":"pass id as parameter"},
{"the screenshot of testing of api are attach my github respository":"pls have a look"}])
});
  • For make it more secure and reliable I am still working on it .

Contributer's is Always welcome

  • if anyone wants to collaborate feel free to contact me or message me on Linkedin :)

Regards & Welcome

Durgesh Tiwari

About

This REST API and NPM library streamline user authentication and authorization, cutting development time by 10%. It offers login and registration for admin and user roles, with customization options. Developers can tailor the package to their needs, boosting efficiency and integrating seamlessly into their projects.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •