I have deployed my Hasura Engine which is running inside a docker in a Linux server. And I have developed my jwt token auth code using nodeJs.
The problem is while adding the token to my Hasura API end point I am getting the below error:
{
"extensions": {
"code": "invalid-jwt",
"path": "$"
},
"message": "Could not verify JWT: JWTIssuedAtFuture"
}
I have given the token expiration time to 120000(2 Minutes). And After 2 mins I don't get the above error, instead, I do get the proper response from the API.
What I am confused about is why I am getting the correct responses in delay.
Note : The docker container time and the Linux server time are not similar. Is that the issue?