3 Commits

Author SHA1 Message Date
3231f916f8
feat(validators): add check for non-existent userId
- The `UserGuard` now checks whether the `userId` extracted from the token exists.
- If the `userId` does not exist, an error is logged and a response with the 'Unauthorized' status is returned.

Signed-off-by: Mathis <yidhra@tuta.io>
2024-04-26 15:44:01 +02:00
a8c41b2268
feat: AdminGuard
#10
2024-04-23 12:00:52 +02:00
0a3d943ca3
feat: UserGuard
#10
2024-04-23 12:00:14 +02:00