Skip to content

Commit

Permalink
Add response check
Browse files Browse the repository at this point in the history
  • Loading branch information
jolynloh committed Nov 10, 2024
1 parent 4ab2040 commit 3f9359c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export const verifyToken = (
.then(() => next())
.catch((err) => {
console.log(err.response);
return res.status(err.response.status).json(err.response.data);
return res.status(err.response?.status).json(err.response?.data);
});
};

0 comments on commit 3f9359c

Please sign in to comment.