mcp-use TypeScript API
    Preparing search index...

    Function isUnauthorized

    • True if the error (or a wrapped cause) is an HTTP 401 / UnauthorizedError that should trigger the OAuth completion dance.

      Parameters

      • err: unknown
      • depth: number = 0

      Returns boolean