N
Nuxtβ€’4mo 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β€’4mo ago
Cookies.
Cake
Cakeβ€’4mo 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
Want results from more Discord servers?
Add your server