Field Notes
    Preparing search index...

    Interface AuthInfo

    interface AuthInfo {
        req: IncomingMessage;
        room: string;
        token?: string;
    }
    Index
    req: IncomingMessage
    room: string
    token?: string

    Bearer token resolved by readBearerToken(req): a fieldnotes-bearer.<token> Sec-WebSocket-Protocol entry, else an Authorization: Bearer header, else the token URL query parameter (legacy; URLs land in proxy logs). undefined when none is present.