Skip to content

Commit

Permalink
add jwtExpired on error
Browse files Browse the repository at this point in the history
  • Loading branch information
salahlalami committed Sep 29, 2024
1 parent e9fedc2 commit 67f6b76
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const isValidAuthToken = async (req, res, next, { userModel, jwtSecret = 'JWT_SE
message: error.message,
error: error,
controller: 'isValidAuthToken',
jwtExpired: true,
});
}
};
Expand Down

0 comments on commit 67f6b76

Please sign in to comment.