Skip to content

Commit

Permalink
Debugg console pointed
Browse files Browse the repository at this point in the history
  • Loading branch information
Md-Rubel-Ahmed-Rana committed Jul 8, 2024
1 parent 41cc337 commit 1187f10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/components/pages/resetPassword/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const ResetPasswordPage = () => {
const params = new URLSearchParams(paths.split("?")[1]);
const userId = params.get("userId");
const token = params.get("token") as string;
console.log({ userId, token });
if (token) {
try {
jwt.verify(
Expand All @@ -83,13 +84,16 @@ const ResetPasswordPage = () => {

setUserId(userId);
} catch (error) {
console.log({ error });
setTokenError(
"The token is expired or invalid. Please request a new password reset."
);
}
}
}, [router]);

console.log({ tokenError });

const password = watch("password");

if (tokenError) {
Expand Down

0 comments on commit 1187f10

Please sign in to comment.