MCPcopy Index your code
hub / github.com/21st-dev/1code / identifyUser

Function identifyUser

src/renderer/App.tsx:186–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184
185 // Identify user if already authenticated
186 const identifyUser = async () => {
187 try {
188 const user = await window.desktopApi?.getUser()
189 if (user?.id) {
190 identify(user.id, { email: user.email, name: user.name })
191 }
192 } catch (error) {
193 console.warn("[Analytics] Failed to identify user:", error)
194 }
195 }
196 identifyUser()
197
198 // Cleanup on unmount

Callers 1

AppFunction · 0.85

Calls 2

identifyFunction · 0.90
getUserMethod · 0.45

Tested by

no test coverage detected