lvlup-pro / spawn-frontend-material

Customer panel frontend for https://api.lvlup.pro
MIT License
7 stars 7 forks source link

Detect old JWT token #69

Closed SystemZ closed 7 years ago

SystemZ commented 7 years ago

Currently user token is valid only 1h, we should detect backend warnings about invalid token and force logout.

SystemZ commented 7 years ago

This is fairly easy to reproduce by just adding some character to local storage token value, backend should give us error 401/403 then. 40x error should be catched near axios api call