-in generateJWT, add a variable to the paylaod with the date and time that the token is generated.
-in validateAuthentication add a check that checks that the date/time variable + the token expires_in has/hasn't surpassed the current date/time, if it has return an error 401 saying "token has expired"