Hi team,
I’ve had a minor problem in my Forest environment for months (but I haven’t had time to deal with it before).
My users have an authentication error that recurs.
I think it’s linked to a token expiry, because I’ve spotted the following error in the logs:
Unauthorized: Forest cannot authenticate the user for this request.
at Immediate.<anonymous> (....\forest-admin\node_modules\forest-express\dist\services\auth.js:38:19)
at process.processImmediate (node:internal/timers:480:21)
[forest] 🌳🌳🌳 undefined
{
"code": "invalid_token",
"status": 401,
"name": "UnauthorizedError",
"inner": {
"name": "TokenExpiredError",
"message": "jwt expired",
"expiredAt": "2024-09-24T11:06:15.000Z"
}
}
I I’m not a programming pro, and I couldn’t find anything about this error in the documentation.
However, it seems to me that the token is managed by forest-express-sequelize
, so why am I having this problem?
Can you please help me solve this problem?
Thanks in advance
My current set up is the following one:
"meta": {
"liana": "forest-express-sequelize",
"liana_version": "9.3.28",
"stack": {
"database_type": "multiple",
"engine": "nodejs",
"engine_version": "20.10.0",
"orm_version": "6.37.3"
}
}