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

Function isThirdPartyProviderSession

src/utils/providerSession.ts:20–24  ·  view source on GitHub ↗
(
  session: ProviderSession,
)

Source from the content-addressed store, hash-verified

18}
19
20export function isThirdPartyProviderSession(
21 session: ProviderSession,
22): boolean {
23 return session?.providerPlan.mode === 'third_party_provider'
24}
25
26export function isCurrentThirdPartyProviderSession(): boolean {
27 return isThirdPartyProviderSession(getCurrentProviderSession())

Calls

no outgoing calls

Tested by

no test coverage detected