I'm having problems with the oauth token

I gave up on the idea that it was the token as soon as I saw that the TTG.com token gives it to me as expired, without checking if the error was given by something else.
in my code there is a function that takes the id of the broadcaster and the moderator, but being in an async function it returned a promise object instead of the id.

thank you very much. I appreciate it.