Forest Admin keeps asking me to repeat my password to unlock my data but says it is wrong, even after resetting it

Expected behavior

I can access Forest Admin

Actual behavior

I log into Forest Admin. It asks me to repeat my password, but I am still kicked out and I don’t know why…

Failure Logs

vendor-c0cf12c33394e8b0175ed60967f4b83c.js:1691 POST http://localhost:3310/forest/sessions 401 (Unauthorized)

POST /forest/sessions 401 4658 - 0.726 ms UnauthorizedError: No authorization token was found at middleware (.../node_modules/express-jwt/lib/index.js:76:21) at Function.process_params (.../node_modules/express/lib/router/index.js:335:12)


  • Project Name: Darwin

What is happening is that you can’t connect to your project. :face_with_monocle:
Do you have any logs in your browser ? What is network response to the failing login ?
Same thing on your project do you any logs in the console ?

Hi, I’ve added logs to the description

I checked and you are not a user on the project darwin :thinking:

Is the project in production, staging, development ?

Ok found the issue. We upgraded to express-jwt v6.0.0.

Doing so we changed the following code:

    secret: process.env.FOREST_AUTH_SECRET,
+    algorithms: ['HS256'],
-    credentialsRequired: false,

But credentialsRequired: false is needed. We didn’t notice at the time because the issue is visible only if we logout and login again.

For further reference :

1 Like

Glad you found the issue !