Get channel name after login on website

can you help me with it? I am trying but I am not sure I am doing the right thing.

Actually I want to simulate what curl does inside my terminal, but from Angular using Javascript.
I have seen some ways to convert curl into node.js, python and more, but it is not the same, since I am using Typescript.

How would you convert that curl into an HTTP Request via Javascript?
If I do that, I think I’m done