My script runs twice, extension

Good afternoon everyone!
Can anyone give me an idea why my js script is executed twice ?
My script is executed inside the onAuthorized callback.

twitch.onAuthorized( function (auth) {
      // My code
});

That is, after getting the channel, user and touch IDs, my code executes.

onAuthorized can and will be called multiple times during the lifetime of the extension on the page.

specially to your code, can’t tell since you only posted basically whats in the docs

Thanks for replying, you gave me a clear idea of where to go.