mirror of
https://github.com/larsbaunwall/vscode-copilot-bridge.git
synced 2025-10-05 22:22:59 +00:00
4 lines
185 B
TypeScript
4 lines
185 B
TypeScript
import type { IncomingMessage } from 'http';
|
|
|
|
export const isAuthorized = (req: IncomingMessage, token: string): boolean =>
|
|
!token || req.headers.authorization === `Bearer ${token}`;
|