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 #321

@CoderManSam

Description

@CoderManSam

-update all functions that call endpoints to redirect the user to the login page if the call returns the error message "token has expired"

-add "tokenExpired" state to login page, useState, can either have the above send an object by props: {tokenExpired: true}, and have useState read that and set state to true, then have a function check the tokenExpired state and have a message popup displaying "Your session has expired. Please login again.". Or can have useState check the token itself, checking the payload date/time against the token expires_in and setting state to true or false that way.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions