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

Function updateSessionIngressRuntimeAuth

src/utils/sessionIngressAuth.ts:347–364  ·  view source on GitHub ↗
(params: {
  token: string
  sessionId?: string | null
  organizationUuid?: string | null
  executionTarget?: Exclude<LeaseExecutionTarget, 'local'>
  providerMode?: Exclude<LeaseProviderMode, 'third_party_provider'>
})

Source from the content-addressed store, hash-verified

345}
346
347export function updateSessionIngressRuntimeAuth(params: {
348 token: string
349 sessionId?: string | null
350 organizationUuid?: string | null
351 executionTarget?: Exclude<LeaseExecutionTarget, 'local'>
352 providerMode?: Exclude<LeaseProviderMode, 'third_party_provider'>
353}): void {
354 updateSessionIngressAuthToken(params.token)
355 updateSessionIngressRuntimeLease(
356 buildSessionIngressLease({
357 executionTarget: params.executionTarget,
358 organizationUuid: params.organizationUuid,
359 providerMode: params.providerMode,
360 sessionId: params.sessionId,
361 token: params.token,
362 }),
363 )
364}

Callers 5

createV2ReplTransportFunction · 0.85
initBridgeCoreFunction · 0.85
wireTransportFunction · 0.85

Tested by

no test coverage detected