oscer-io / oscer

A simple CMS and blogging platform as a Laravel package
https://oscer.io/
MIT License
9 stars 2 forks source link

Redirect to login when token is no longer valid #121

Closed emanueljacob closed 4 years ago

emanueljacob commented 4 years ago

Instead of showing error messages in the dom, it would be a good idea to redirect the user back to login, when the current access token is invalid

bambamboole commented 4 years ago

This is just the csrf token and not the session token. I think we only have to fetch a new token like this: https://laravel.com/docs/7.x/sanctum#spa-authenticating