This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Description Bug report
Describe the bug
onAuthStateChange fires every time we blur (go to a different tab) and focus on the tab with supabase
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Go to https://n3-supabase.netlify.app/
Log in
Open devtools network tab
blur (go to a different tab)
focus (go back to the tab with an active supabase.js auth session)
network shows a new request to /api/_supabase/session on every focus event
no state was changed, but onAuthStateChange was fired which triggered the request in nuxt
Expected behavior
onAuthStateChange fires only when the state actually changes
Screenshots
System information
OS: macOS
Version of nuxt-supabase - "@nuxtjs/supabase": "^0.3.0",
Additional context
This doesn't seem to be a nuxt problem as it only subscribes once to the onAuthStateChange
Reactions are currently unavailable
Bug report
Describe the bug
onAuthStateChangefires every time we blur (go to a different tab) and focus on the tab with supabaseTo Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
/api/_supabase/sessionon every focus eventonAuthStateChangewas fired which triggered the request in nuxtExpected behavior
onAuthStateChangefires only when the state actually changesScreenshots
System information
Additional context
This doesn't seem to be a nuxt problem as it only subscribes once to the
onAuthStateChange