Hello, I recently found out that `onAuthStateChan...
# javascript
d
Hello, I recently found out that
onAuthStateChange
function is triggered when I change tabs. For example, If I have my supabase application open in TAB1 and facebook app open in TAB2. When I visit facebook in TAB2 and come back to my supabase application on TAB1,
onAuthStateChange
function gets triggered. How do I turn this off?
j
Hi @dipesh, You want to set
multiTab
to
false
in the supbaseClient options: https://supabase.github.io/supabase-js/modules/lib_types.html#SupabaseClientOptions
d
Thanks.
j
No problems