Auth0 Universal Components
    Preparing search index...

    Function hasApiErrorBody

    • Type guard to check if an error has a structured API error body.

      Parameters

      • error: unknown

        The unknown value to test

      Returns error is {
          body?: {
              detail?: string;
              status?: number;
              title?: string;
              type?: string;
          };
      }

      true if the error has a body property with optional detail, title, status, or type fields