MCPcopy Create free account
hub / github.com/ShipSecAI/studio / getCurrentUserId

Function getCurrentUserId

frontend/src/lib/currentUser.ts:3–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1const FALLBACK_USER_ID = 'demo-user';
2
3export function getCurrentUserId(): string {
4 const envUser = import.meta.env?.VITE_DEFAULT_USER_ID;
5 if (typeof envUser === 'string' && envUser.trim().length > 0) {
6 return envUser.trim();
7 }
8 return FALLBACK_USER_ID;
9}

Callers 3

ParameterFieldFunction · 0.90
IntegrationsManagerFunction · 0.90
IntegrationCallbackFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected