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

Function getCurrentOAuthClientSession

src/services/oauth/client.ts:39–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 | null
38
39function getCurrentOAuthClientSession(): OAuthClientSession {
40 try {
41 /* eslint-disable @typescript-eslint/no-require-imports */
42 const { getAuthRuntime } =
43 require('../../auth/runtime/AuthRuntime.js') as typeof import('../../auth/runtime/AuthRuntime.js')
44 /* eslint-enable @typescript-eslint/no-require-imports */
45 return getAuthRuntime().getCurrentSession()
46 } catch {
47 return null
48 }
49}
50
51async function resolveOAuthClientSession(params?: {
52 allowRefresh?: boolean

Callers 3

refreshOAuthTokenFunction · 0.85
getOrganizationUUIDFunction · 0.85

Calls 2

getAuthRuntimeFunction · 0.85
getCurrentSessionMethod · 0.65

Tested by

no test coverage detected