N
Nuxtβ€’6mo ago
Fernando Andrade

Authenticated users

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
2 Replies
Cue
Cueβ€’6mo ago
Cookies.
Cake
Cakeβ€’6mo ago
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

Did you find this page helpful?