Skip to content

Commit 9a82379

Browse files
authored
feat: separately track handling of turnkey email token (#1907)
1 parent 6351e4b commit 9a82379

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/constants/analytics.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ export const AnalyticsEvents = unionize(
205205
TurnkeyLoginInitiated: ofType<{
206206
signinMethod: 'email' | 'google' | 'apple';
207207
}>(),
208+
TurnkeyLoginEmailToken: ofType<{}>(),
208209
TurnkeyLoginError: ofType<{
209210
signinMethod: 'email' | 'google' | 'apple';
210211
error: string;

src/providers/TurnkeyAuthProvider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ const useTurnkeyAuthContext = () => {
507507
authIframeClient &&
508508
emailSignInStatus === 'idle'
509509
) {
510+
track(AnalyticsEvents.TurnkeyLoginEmailToken({}));
510511
logBonsaiInfo('TurnkeyOnboarding', 'Attempting to handle email magic link');
511512
handleEmailMagicLink({ token: emailToken });
512513
}

0 commit comments

Comments
 (0)