Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
257 B
Raw Blame
import { Request } from 'express'

export function extractBearerToken(req: Request): string {
  const raw = String(req.header('authorization') || '').trim()
  if (/^bearer\s+/i.test(raw)) {
    return raw.replace(/^bearer\s+/i, '').trim()
  }
  return ''
}