MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / getInternalApiKey

Function getInternalApiKey

packages/sdk/src/middleware.ts:1–5  ·  view source on GitHub ↗
(req: any)

Source from the content-addressed store, hash-verified

1function getInternalApiKey(req: any) {
2 const authorizationHeader = req.headers['x-api-internal'];
3 if (!authorizationHeader) return null;
4 return decodeURIComponent(authorizationHeader);
5}
6
7export function integrationMiddleware(INTERNAL_API_KEY: string) {
8 return async (req: any, _: any, next: any) => {

Callers 1

integrationMiddlewareFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected