I understand, however my two applications cannot communicate well. One is a bot for discord which can interrogate the API and the other is the bot rated TMI which may also want to obtain information on the API.
It is a rather complex problem of blows.
The solution to create two applications on the Twitch side, with different client_id and client_secret is not good either I imagine?