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

Method resolveSession

src/auth/runtime/AuthRuntime.ts:627–639  ·  view source on GitHub ↗
(
    options: ResolveSessionOptions = {},
  )

Source from the content-addressed store, hash-verified

625 }
626
627 async resolveSession(
628 options: ResolveSessionOptions = {},
629 ): Promise<ResolvedAuthSession> {
630 const initialSession = this.getCurrentSession()
631 if (
632 options.allowRefresh &&
633 initialSession.principalSource === 'managed_oauth'
634 ) {
635 await checkAndRefreshOAuthTokenIfNeeded(0, options.forceRefresh ?? false)
636 }
637
638 return await this.maybeWarmApiKeyHelperSession(this.getCurrentSession())
639 }
640
641 async buildFirstPartyHeaders(
642 options: BuildFirstPartyHeadersOptions = {},

Callers 2

getStatusViewMethod · 0.95

Tested by

no test coverage detected