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

Function buildProviderAuthKind

src/auth/runtime/AuthRuntime.ts:329–340  ·  view source on GitHub ↗
(providerPlan: ProviderPlan)

Source from the content-addressed store, hash-verified

327}
328
329function buildProviderAuthKind(providerPlan: ProviderPlan): ProviderAuthKind {
330 switch (providerPlan.mode) {
331 case 'noumena_managed':
332 return 'noumena_first_party'
333 case 'byok_static_env':
334 return 'byok_static_env'
335 case 'third_party_provider':
336 return 'third_party_provider'
337 case 'none':
338 return 'none'
339 }
340}
341
342function buildManagedSessionSnapshot(): null | ResolvedAuthSession {
343 const storedManagedTokens = getStoredManagedOauthTokens(false)

Callers 1

resolveSessionSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected