fix: social auth authentication workflow (#1264)
* fix: github login mutation * dev: updated social auth workflow and handled multiple loads on user * dev: mutaing user and updated analytics logout issue resolved --------- Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
This commit is contained in:
parent
49f19c2c44
commit
66807bef0d
5 changed files with 28 additions and 41 deletions
|
|
@ -69,12 +69,13 @@ const Analytics = () => {
|
|||
useEffect(() => {
|
||||
if (!workspaceSlug) return;
|
||||
|
||||
trackEventServices.trackAnalyticsEvent(
|
||||
{ workspaceSlug: workspaceSlug?.toString() },
|
||||
"WORKSPACE_SCOPE_AND_DEMAND_ANALYTICS",
|
||||
user
|
||||
);
|
||||
}, [workspaceSlug]);
|
||||
if (user && workspaceSlug)
|
||||
trackEventServices.trackAnalyticsEvent(
|
||||
{ workspaceSlug: workspaceSlug?.toString() },
|
||||
"WORKSPACE_SCOPE_AND_DEMAND_ANALYTICS",
|
||||
user
|
||||
);
|
||||
}, [user, workspaceSlug]);
|
||||
|
||||
return (
|
||||
<WorkspaceAuthorizationLayout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue