You can’t use the Client Credentials flow. That is for an App token, and does not represent a user.
To access private information, such as a channels subscriber list, you need that broadcaster to go through the Authorization Code flow if making requests on your server, or the Implicit flow if making requests client-side from a browser.
Yes, for all User token flows it requires sending the user the Twitch auth URL so that they can see what permissions (scopes) you are requesting, and that they can explicitly allow/deny that connection to your app.
You can use the Get Users, or Validate Token endpoints with your OAuth token, and it will return the user associated with that token, including their id.
@Dist
I have an other question, I want to create a EventSub for channel.subscribe but I dont know how to generate the secret in transport
It always return me a
Thanks for helping !
The secret is whatever you want it to be. Whatever string you define as the secret is what Twitch will use to sign each notification they send to you, that way you can use that secret so validate all notifications.