Closed Tumelo2748 closed 1 month ago
This PR adds authentication middleware for securing our applications using JWT.
Admin Controller:
registerAdmin
loginAdmin
Middleware:
authenticateToken
isAdmin
Description:
This PR adds authentication middleware for securing our applications using JWT.
Key Changes:
Admin Controller:
registerAdmin
andloginAdmin
controllers to handle authentication logic.Middleware:
authenticateToken
andisAdmin
middleware to protect admin-only routes.How Has This Been Tested?
authenticateToken
andisAdmin
middleware.Related Issue:
Checklist: