about summary refs log tree commit diff
path: root/src/state/session/types.ts
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-03-27 20:17:07 +0200
committerGitHub <noreply@github.com>2025-03-27 20:17:07 +0200
commit5ceaee57938892157491ae2941d05f90c1d74149 (patch)
treed5c2df5937570fd4f3393ecf431e37c6675d80c7 /src/state/session/types.ts
parent7d1ebf6a027085ddc10a7dad2075d5e52d314233 (diff)
downloadvoidsky-5ceaee57938892157491ae2941d05f90c1d74149.tar.zst
Instrument signup (#8037)
Diffstat (limited to 'src/state/session/types.ts')
-rw-r--r--src/state/session/types.ts23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/state/session/types.ts b/src/state/session/types.ts
index d32259de9..9aadf9d05 100644
--- a/src/state/session/types.ts
+++ b/src/state/session/types.ts
@@ -10,16 +10,19 @@ export type SessionStateContext = {
 }
 
 export type SessionApiContext = {
-  createAccount: (props: {
-    service: string
-    email: string
-    password: string
-    handle: string
-    birthDate: Date
-    inviteCode?: string
-    verificationPhone?: string
-    verificationCode?: string
-  }) => Promise<void>
+  createAccount: (
+    props: {
+      service: string
+      email: string
+      password: string
+      handle: string
+      birthDate: Date
+      inviteCode?: string
+      verificationPhone?: string
+      verificationCode?: string
+    },
+    metrics: LogEvents['account:create:success'],
+  ) => Promise<void>
   login: (
     props: {
       service: string