MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / extractBearerToken

Function extractBearerToken

services/db-proxy/src/utils/auth.ts:9–15  ·  view source on GitHub ↗
(c: Context<{ Bindings: Env }>)

Source from the content-addressed store, hash-verified

7/**
8 * Extract bearer token from Authorization header
9 */
10export function extractBearerToken(c: Context<{ Bindings: Env }>): string | null {
11 return extractBearerTokenFromHeader(c.req.header('Authorization'));
12}
13
14/**
15 * Verify admin token from environment
16 */
17export function verifyAdminToken(c: Context<{ Bindings: Env }>): boolean {
18 const token = extractBearerToken(c);

Callers 3

auth.test.tsFile · 0.90
runtime.tsFile · 0.90
verifyAdminTokenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected