I am starting to develop an app in Vue (newbie) with a Laravel backend, and I have some doubts:
- Best practices vue-router / ziggy.js
- Authentication via Sanctum crsf/session cookie (Fortify), its not clear to me how on the Vue side I can check if the user is authenticated, should I check that the "XSRF-TOKEN" and "laravel_session" cookies aren't expired?
- How can I manage which routes the user can use in vue router, perhaps by adding the role to the login response?