Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/winfunc/opcode
/ getUserId
Method
getUserId
src/lib/analytics/consent.ts:106–108 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
104
}
105
106
getUserId(): string {
107
return
this.settings?.userId || this.generateAnonymousId();
108
}
109
110
getSessionId(): string {
111
return
this.settings?.sessionId || this.generateSessionId();
Callers
2
track
Method · 0.80
identify
Method · 0.80
Calls
1
generateAnonymousId
Method · 0.95
Tested by
no test coverage detected