Skip to content

madhavbhatia01/authentication-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

authentication-system

POST /register - registers a new user

Screenshot 2023-06-27 at 4 33 26 AM

POST /login - log in a user, returns token to authenticate further requests

Screenshot 2023-06-27 at 1 29 39 PM

validateToken - function to check whether token is valid

Screenshot 2023-06-27 at 1 46 51 PM

POST /logout - log out a user, invalidates the user's token

Screenshot 2023-06-27 at 2 08 52 PM

GET /profile - returns the profile of logged-in user, this endpoint is secured with the token returned at login

Screenshot 2023-06-27 at 3 56 16 PM

PUT /profile - updates the profile of the logged-in user, this endpoint is secured with the token returned at login

Screenshot 2023-06-27 at 4 04 48 PM

About

basic authentication system

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published