Mathis c9e6cb6169
feat: add authentication middleware
This commit adds authentication middleware for user and admin levels. The middleware retrieves the JWT from the header and verifies it. Error messages are returned for cases like no token found, user not found, unverified email, and when a user is not an admin but tries to perform an admin function.
2024-05-22 14:20:30 +02:00
2024-05-22 14:20:30 +02:00
2024-05-15 11:02:05 +02:00
2024-05-13 09:30:22 +02:00
2024-05-13 09:30:22 +02:00

brief-06-back

Description
No description provided
Readme 218 KiB
Languages
TypeScript 100%