This lesson is for members. Join us?
Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.
Retrieve the Auth Session using Supabase Client
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.
