use jwt.verify instead of jwt.decoded to verify authenticity of token
This commit is contained in:
1 parent
e6068bfdc4
commit
412ac3312b
2 files changed
+16
-1
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user