diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-04-05 11:15:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-05 11:15:22 -0500 |
commit | 8e28d3c6be8e063b6d563b0068cb4fc907ff5df0 (patch) | |
tree | 612615f2e5000e6870b6945f5592fa252d3b7db5 /src/state/models/session.ts | |
parent | 92b80ff048db251e1e4afa74ed3006268aee5929 (diff) | |
download | voidsky-8e28d3c6be8e063b6d563b0068cb4fc907ff5df0.tar.zst |
* Only send analytics events when the user is logged in * Only send analytics events when the user is logged in (web) * Add analytics identify() call
Diffstat (limited to 'src/state/models/session.ts')
-rw-r--r-- | src/state/models/session.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state/models/session.ts b/src/state/models/session.ts index c2e10880d..96e058c02 100644 --- a/src/state/models/session.ts +++ b/src/state/models/session.ts @@ -25,6 +25,7 @@ export const accountData = z.object({ accessJwt: z.string().optional(), handle: z.string(), did: z.string(), + email: z.string().optional(), displayName: z.string().optional(), aviUrl: z.string().optional(), }) @@ -201,6 +202,7 @@ export class SessionModel { accessJwt, handle: session?.handle || existingAccount?.handle || '', + email: session?.email || existingAccount?.email || '', displayName: addedInfo ? addedInfo.displayName : existingAccount?.displayName || '', |