© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
32 replies
stukennedy

Why doesn't supabase auth set cookies??

I'm having to rewrite my Sveltekit app to accommodate the new SvelteKit changes and trying to make my app more SSRed.
I've had to jump through some painful hoops to get the cookies ('sb-access-token' and 'sb-refresh-token') set and unset for the auth changes in my MagicLink auth .... and this still requires me using frontend code to handle the response and then trigger POSTs and stuff to get the cookies saved.
Wondering ... why does Supabase auth not just set the cookies on the response in the 'Set-Cookie' header?
Would save me a tonne of headache and means I wouldn't have to use
onAuthStateChange
onAuthStateChange
and handle all the cases ... and would also mean it doesn't get triggered everytime I move away from the tab and back again (which annoyingly forces a refreshed signin)
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

Sveltekit Supabase Auth Helpers cookies.set() error
SupabaseSSupabase / help-and-questions
3y ago
supabase google auth wont get cookies
SupabaseSSupabase / help-and-questions
8mo ago
Supabase.auth.exchangeCodeForSession doesn't persist session
SupabaseSSupabase / help-and-questions
3y ago
Supabase Auth: why set supabaseResponse in setAll() again?
SupabaseSSupabase / help-and-questions
3mo ago