Hasura JWTIssuedAtFuture Error #9510
-
I have developed the JWT token generator using Nodejs in my Local Machine by following Hasura's JWT principle from the Doc. I am getting the token result properly.
Hasure Image is Hasura Engine is running in a docker container in a Linux-hosted server. And I have added the HASURA_GRAPHQL_ADMIN_SECRET and HASURA_GRAPHQL_JWT_SECRET env as well. Note that The Linux-hosted server time and the Hasura docker container time are the same. But the problem is after putting the generated token in the Hasura API endpoint, I am getting the following error: But, after some time I could get the result properly from the same Hasura API using the same Token. I don't know why this weird thing is happening. It would be helpful to give me a solution. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I had solved my issue. I figured out that the time of my Hasura-engine docker container was 2 minutes slower than my server time. So I had delayed 2 minutes in the 'iat' from my JWT generator logic. |
Beta Was this translation helpful? Give feedback.
I had solved my issue.
I figured out that the time of my Hasura-engine docker container was 2 minutes slower than my server time.
So I had delayed 2 minutes in the 'iat' from my JWT generator logic.