MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / setAuthLoggerContext

Function setAuthLoggerContext

cli/src/hooks/use-auth-state.ts:15–19  ·  view source on GitHub ↗
(params: { userId: string; email: string })

Source from the content-addressed store, hash-verified

13import type { User } from '../utils/auth'
14
15const setAuthLoggerContext = (params: { userId: string; email: string }) => {
16 loggerContext.userId = params.userId
17 loggerContext.userEmail = params.email
18 identifyUser(params.userId, { email: params.email, freebuff: IS_FREEBUFF })
19}
20
21const clearAuthLoggerContext = () => {
22 delete loggerContext.userId

Callers 1

useAuthStateFunction · 0.85

Calls 1

identifyUserFunction · 0.90

Tested by

no test coverage detected