Closed dangvuthang closed 3 years ago
auto-logout
token expired
remainingTime
config.env
backend
EXPIRES_IN=7s
login
signup
the alert
refresh
logout
Changelog
auto-logout
whenevertoken expired
remainingTime
whenever user visit any pagesHow to test
config.env
inbackend
and change the fieldEXPIRES_IN=7s
(Token will expire in 7 seconds instead of 2 days to check)login
, orsignup
the alert
will appear and inform that the session has expiredrefresh
the page before the token expired and see if the website correctlylogout
after the remaining time