You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I am trying to manually test the auth route (http://localhost:3500/auth) using Thunder Client. and I'm getting the following error:
POST /auth
cookie available at login: {}
/refresh_token_rotation/controllers/authController.js:67
foundUser.refreshToken = [...newRefreshTokenArray, newRefreshToken];
^
TypeError: newRefreshTokenArray is not iterable
at handleLogin (/refresh_token_rotation/controllers/authController.js:67:38)
Node.js v18.12.1
[nodemon] app crashed - waiting for file changes before starting...
It appears to be happening here:
// Saving refreshToken with current user
foundUser.refreshToken = [...newRefreshTokenArray, newRefreshToken];
const result = await foundUser.save();
console.log(result);
console.log(roles);
The text was updated successfully, but these errors were encountered:
Hello. I am trying to manually test the auth route (http://localhost:3500/auth) using Thunder Client. and I'm getting the following error:
It appears to be happening here:
The text was updated successfully, but these errors were encountered: