We’ll retrieve an active user session using Supabase's getSession
method. By placing the session check in app.vue
with the onMounted
hook, the app will recognize logged-in users across all pages, even if they leave and return. This keeps sessions active and updates the store automatically.