MCPcopy Index your code
hub / github.com/CapSoftware/Cap / protectedHeaders

Function protectedHeaders

apps/desktop/src/utils/web-api.ts:74–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72}
73
74export async function protectedHeaders() {
75 const { authorization } = await maybeProtectedHeaders();
76 if (!authorization)
77 throw new Error(
78 "Please sign in to continue. Alternatively, email hello@cap.so or join our Discord at cap.link/discord",
79 );
80 return { authorization };
81}

Callers 11

createCustomDomainQueryFunction · 0.90
SettingsFunction · 0.90
feedback.tsxFile · 0.90
fetchStorageIntegrationsFunction · 0.90
fetchS3ConfigFunction · 0.90
GoogleDriveConfigPageFunction · 0.90
S3ConfigPageFunction · 0.90
AppsTabFunction · 0.90

Calls 1

maybeProtectedHeadersFunction · 0.85

Tested by

no test coverage detected