James singh
05/26/2023, 3:30 PMjs
supabase.auth.onAuthStateChange(async (event) => {
if (!event) return;
if (event === 'SIGNED_IN') {
console.log('User signed in'); //this span in console multiple times
} else return
});