Unify bridge auth header and add live telemetry panel

This commit is contained in:
itsrubberduck
2026-02-15 16:04:07 +01:00
parent 57fc0e3150
commit ae0f0b0f86
7 changed files with 161 additions and 35 deletions

View File

@@ -1,3 +1,5 @@
import { getHeader, type H3Event } from 'h3'
export function normalizeBridgeToken(input: unknown) {
if (typeof input !== 'string') {
return null
@@ -12,3 +14,6 @@ export function normalizeBridgeToken(input: unknown) {
return token
}
export function getBridgeTokenFromHeader(event: H3Event) {
return normalizeBridgeToken(getHeader(event, 'x-bridge-token'))
}