vscode-copilot-bridge/src/http/auth.ts
Devin AI c8afe9ee17 refactor(extension): extract config/state/logging/models/messages/http modules (SRP)
Co-Authored-By: Lars Baunwall <larslb@thinkability.dk>
2025-08-12 20:40:55 +00:00

4 lines
185 B
TypeScript

import type { IncomingMessage } from 'http';
export const isAuthorized = (req: IncomingMessage, token: string): boolean =>
!token || req.headers.authorization === `Bearer ${token}`;