I can't get the authentication token for the API

I discovered the reason for the error, it was a simple error in the code

the headers were wrong:

headers:
    { 
                "Client-ID": 'twitchClientID' ,
      "Authorization": 'Bearer tokentwitch' 
        } };

right headers:

headers:
    { 
                "Client-ID": twitchClientID,
      "Authorization": 'Bearer ' + tokentwitch
        } };