MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / getInternalApiKey

Function getInternalApiKey

apps/web/server/middlewares/integration.ts:6–14  ·  view source on GitHub ↗
(req: any)

Source from the content-addressed store, hash-verified

4import { ApiKeysService } from 'services/api-keys';
5
6function getInternalApiKey(req: any) {
7 const authorizationHeader =
8 req.headers instanceof Headers
9 ? req.headers.get('x-api-internal')
10 : req.headers['x-api-internal'];
11
12 if (!authorizationHeader) return null;
13 return decodeURIComponent(authorizationHeader);
14}
15
16function getApiKey(req: any) {
17 const authorizationHeader =

Callers 1

integrationMiddlewareFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected