fix: avoid duplicate calling of getProfile when signedin

This commit is contained in:
Rotimi Best
2024-09-23 21:57:19 +01:00
parent fc4c115c46
commit c358cbf982
+1 -1
View File
@@ -258,7 +258,7 @@
}
// Skip Authentication
if (data.skipAuth) return;
if (data.skipAuth || $user.fetchingUser) return;
// Authentication Steps
if (event === 'SIGNED_IN' || event === 'INITIAL_SESSION') {