hi guys, i'm new here, and I would like some tips from the props π
when building a system whats the commons ways to validate that a user is logged? so when hit the refresh it doesnt redirect to the login page
POST /api/login -> sets a cookie + return user object
GET /api/self -> sends previous cookie + returns user object
u'd normally call /api/self in a nuxt plugin