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

Function fetchWithCurrentAuth

src/utils/fastMode.ts:448–455  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

446 lastPrefetchAt = now
447
448 const fetchWithCurrentAuth = async (): Promise<FastModeResponse> => {
449 const session = await authRuntime.resolveSession({ allowRefresh: true })
450 const auth = resolveFastModeFetchAuth(session)
451 if (!auth) {
452 throw new Error('No auth available')
453 }
454 return fetchFastModeStatus(auth)
455 }
456
457 async function doFetch(): Promise<void> {
458 try {

Callers 1

doFetchFunction · 0.85

Calls 3

resolveFastModeFetchAuthFunction · 0.85
fetchFastModeStatusFunction · 0.85
resolveSessionMethod · 0.65

Tested by

no test coverage detected