94e1b2f
1
2
3
4
5
6
7
import type express from 'express' export function getRequestClientId(req: express.Request): string | undefined { const clientId = String(req.headers['x-client-id'] || '').trim() return clientId || undefined }