MrWednesday-glitch / YelpAgainstCompanies

A blog for commenting on companies and each other's comments
0 stars 0 forks source link

Tell user when the JWT is not valid anymore #23

Closed MrWednesday-glitch closed 11 months ago

MrWednesday-glitch commented 12 months ago

So far I need to logout and log back in every time I need to test it. There has to be a way to tell the user that they are "logged out"... Maybe via a popup...

MrWednesday-glitch commented 12 months ago

https://www.tektutorialshub.com/angular/angular-httpclient-http-interceptor/

MrWednesday-glitch commented 12 months ago

Use httpinterceptor to check if token is still valid, if not redirect to login page