"expiresIn" should be a number of seconds or string representing a timespan - JWT
I had set TOKEN_EXPIRATIONS=7d on my .env file and was not working properly. So I found 2 ways to fix...
Tags: jwt, node