Skip to content

Commit c120535

Browse files
committed
Include is freebuff in identify user
1 parent 98c09a6 commit c120535

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/src/hooks/use-auth-state.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { useLoginStore } from '../state/login-store'
66
import { identifyUser, trackEvent } from '../utils/analytics'
77
import { getUserCredentials } from '../utils/auth'
88
import { resetCodebuffClient } from '../utils/codebuff-client'
9+
import { IS_FREEBUFF } from '../utils/constants'
910
import { loggerContext } from '../utils/logger'
1011

1112
import type { MultilineInputHandle } from '../components/multiline-input'
@@ -14,7 +15,7 @@ import type { User } from '../utils/auth'
1415
const setAuthLoggerContext = (params: { userId: string; email: string }) => {
1516
loggerContext.userId = params.userId
1617
loggerContext.userEmail = params.email
17-
identifyUser(params.userId, { email: params.email })
18+
identifyUser(params.userId, { email: params.email, is_freebuff: IS_FREEBUFF })
1819
}
1920

2021
const clearAuthLoggerContext = () => {

0 commit comments

Comments
 (0)