© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago
cloud

'SIGNED_IN' is not being fired

onAuthStateChange should fire 'SIGNED_IN' after the OAuth sign-in is completed, and every time the tab is refreshed or loaded, but it doesn't, instead it is fired when I tab out or in (one or another) of my app.

It is working as intended on my another react project though. The one project that is working properly has these in the root component (App.js), and the second one has it inside one of the routes.
function App () {
  return (
    <>
      <Routes>
        <Route path="/" element={<Home />}/> // This has the onauthstatechange that doesn't fire 'SIGNED_IN' first time
      </Routes>
    </>
  );
}
function App () {
  return (
    <>
      <Routes>
        <Route path="/" element={<Home />}/> // This has the onauthstatechange that doesn't fire 'SIGNED_IN' first time
      </Routes>
    </>
  );
}
image.png
image.png
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

firefox bug: SIGNED_IN event not being fired on load.
SupabaseSSupabase / help-and-questions
3mo ago
Realtime updates not fired but available in websocket
SupabaseSSupabase / help-and-questions
4y ago
Data is not being inserted in supabase.
SupabaseSSupabase / help-and-questions
4y ago
How do I avoid content flashing from signed in and not signed in?
SupabaseSSupabase / help-and-questions
4y ago