© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
enti

Session using a store or not?

I followed a guide keeping the current auth Session in a store (pinia/vue3). Obviously, I don't detect if the session ran out.
Should I avoid using a store to handle the Session, or call
supabase.auth.session()
supabase.auth.session()
anywhere I need it instead? Or should I use a getter in my store which will call for
const session = supabase.auth.session()
const session = supabase.auth.session()
anytime I need this value / check if the user is still authenticated server side?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Using withPageAuth without a session
SupabaseSSupabase / help-and-questions
4y ago
Store session in different ways
SupabaseSSupabase / help-and-questions
3y ago
Session remains NotAuthenticated on iOS after OAuth login using supabase-kt
SupabaseSSupabase / help-and-questions
5mo ago
SvelteKit auth helpers and storing session.user in a store—no more prop drilling with session.user
SupabaseSSupabase / help-and-questions
4y ago