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

Function getCurrentProviderSession

src/utils/providerSession.ts:8–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 | undefined
7
8function getCurrentProviderSession(): ProviderSession {
9 try {
10 /* eslint-disable @typescript-eslint/no-require-imports */
11 const { getAuthRuntime } =
12 require('../auth/runtime/AuthRuntime.js') as typeof import('../auth/runtime/AuthRuntime.js')
13 /* eslint-enable @typescript-eslint/no-require-imports */
14 return getAuthRuntime().getCurrentSession()
15 } catch {
16 return null
17 }
18}
19
20export function isThirdPartyProviderSession(
21 session: ProviderSession,

Calls 2

getAuthRuntimeFunction · 0.85
getCurrentSessionMethod · 0.65

Tested by

no test coverage detected