-
-
Notifications
You must be signed in to change notification settings - Fork 466
Closed
Labels
bugSomething isn't workingSomething isn't workingwontfixThis will not be worked onThis will not be worked on
Description
Bug report
Describe the bug
auth.onAuthStateChanged triggers on tab switch
To Reproduce
-
Create starter project using this guide https://supabase.com/docs/guides/with-vue-3
-
add lines to src/main.js
import { supabase } from "./supabase";
supabase.auth.onAuthStateChange(console.log);
- run
npm run dev
- open
http://localhost:3000
in browser - open dev console
- Switch to another tab
- Switch back to previous tab
Expected behavior
1 SIGNED_IN event in console
Actuall behaviour
2 SIGNED_IN event in console
Screenshots
https://www.loom.com/share/56993404e5f348d2bb23b68b0ad15096
System information
- OS: macOS
- Browser (if applies) brave
- Version of supabase-js: 1.35.3
- Version of Node.js: 16.14.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwontfixThis will not be worked onThis will not be worked on