manchenkoff / nuxt-auth-sanctum

Nuxt module for Laravel Sanctum authentication
https://manchenkoff.gitbook.io/nuxt-auth-sanctum/
MIT License
153 stars 18 forks source link

[Bug] Infinite redirect to logout page #70

Closed manchenkoff closed 5 months ago

manchenkoff commented 5 months ago

Describe the bug Since version 0.2.0 when a user is not authenticated we keep redirecting them to logout page.

To Reproduce Steps to reproduce the behavior:

  1. Logout
  2. Click on any page
  3. Refresh it to make SSR handle identity fetching error

Expected behavior User stays on the same page if it is not covered by middleware