© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•7mo ago•
20 replies
bennajah

onAuthStateChange not triggered when using server-side signIn/signOut in Next.js with Supabase

When using the Supabase server client (from @supabase/ssr) to call signIn or signOut inside a Next.js server actions, the auth state changes are not detected on the browser client (createBrowserClient()). even using router.refrech()
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 Supabase in NextJS Server Side
SupabaseSSupabase / help-and-questions
14mo ago
onAuthStateChange not triggered on account deletion
SupabaseSSupabase / help-and-questions
4y ago
Issue with onAuthStateChange in Pinia + Supabase
SupabaseSSupabase / help-and-questions
2mo ago
Get user server-side on supabase js 2.0 + next.js
SupabaseSSupabase / help-and-questions
4y ago