Forest Admin - API reference
    Preparing search index...

    Function extractMcpOauthTokensFromHeaders

    • Extracts and parses OAuth tokens from request headers. Returns undefined if the header is not present. Throws AIBadRequestError if the header contains invalid JSON.

      Parameters

      • headers: Record<string, string | string[] | undefined>

      Returns Record<string, string>