imranhsayed/gatsby-woocommerce-themes

JWT Token expiration messing up the website

CiubancanCristian opened this issue · 1 comments

I figured that the add to cart not going through issue comes from the fact that the jwt token is short lived and as soon as it expires, trying to add to cart gives an internal server error, how could we solve this issue Imran?

This issue can be solved by implementing some sort of way to refresh the tokens, also if the token is neither valid nor refreshable( too much time passed by from the last user made request to the website) the user should be logged out.