Only call setAuthCookie on local

This commit is contained in:
rotimi-best
2021-08-21 10:18:10 +03:00
parent 3d814d3cff
commit f2db3e19bf
3 changed files with 35 additions and 7 deletions
+3 -1
View File
@@ -99,7 +99,9 @@
const { data: authListener } = supabase.auth.onAuthStateChange(
(event, session) => {
handleAuthChange(event, session);
if (config.isDev) {
handleAuthChange(event, session);
}
if (event === 'SIGNED_IN') {
$user.fetchingUser = true;