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

Function shouldSkipApiKeyVerification

src/hooks/useApiKeyVerification.ts:43–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43export function shouldSkipApiKeyVerification(): boolean {
44 const session = getAuthRuntime().getCurrentSession()
45 return shouldSkipApiKeyVerificationForAuthState({
46 apiProvider: getAPIProvider(),
47 bareMode: isBareMode(),
48 providerMode: session.providerPlan.mode,
49 principalSource: session.principalSource,
50 hasAuthToken: session.hasUsableToken,
51 })
52}
53
54type ApiKeyVerificationSessionInput =
55 | Pick<ResolvedAuthSession, 'apiKey' | 'rawApiKeySource'>

Callers 1

useApiKeyVerificationFunction · 0.85

Calls 5

getAuthRuntimeFunction · 0.85
getAPIProviderFunction · 0.85
isBareModeFunction · 0.85
getCurrentSessionMethod · 0.65

Tested by

no test coverage detected