OpenClaw SDK
    Preparing search index...

    Function isAuthError

    • Type guard for AuthError

      Parameters

      • error: unknown

        Value to check

      Returns error is AuthError

      True if the value is an AuthError

      if (isAuthError(error)) {
      console.log("Auth error:", error.code);
      }