Skip to content

As a user, so that I know I need to re-login, I'd like the app to take me back to the login page once my token has expired. #44 #243

@CoderManSam

Description

@CoderManSam

-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"

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions