use jwt.verify instead of jwt.decoded to verify authenticity of token

This commit is contained in:
Rushi Gandhi committed 2024-10-16 20:20:08 +05:30
1 parent e6068bfdc4
commit 412ac3312b
2 files changed
+16 -1

No files matched your search

+3
View File
@@ -17,6 +17,9 @@ const errorMessages = {
INVALID_REFRESH_TOKEN: "Invalid refresh token",
EXPIRED_REFRESH_TOKEN: "Refresh token expired",
//Payload
INVALID_PAYLOAD: "Invalid payload",
//Ownership Middleware
VERIFY_OWNER_NOT_FOUND: "Document not found",
VERIFY_OWNER_UNAUTHORIZED: "Unauthorized access",