MCPcopy Create free account
hub / github.com/Noumena-Network/code / getCurrentAnalyticsSession

Function getCurrentAnalyticsSession

src/utils/user.ts:14–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12let emailFetchPromise: Promise<string | undefined> | null = null
13
14function getCurrentAnalyticsSession() {
15 const session = getAuthRuntime().getCurrentSession()
16 return session.providerPlan.mode === 'noumena_managed' &&
17 session.headersKind === 'bearer'
18 ? session
19 : null
20}
21
22/**
23 * GitHub Actions metadata when running in CI

Callers 3

user.tsFile · 0.85
getEmailFunction · 0.85
getEmailAsyncFunction · 0.85

Calls 2

getAuthRuntimeFunction · 0.85
getCurrentSessionMethod · 0.65

Tested by

no test coverage detected