To get an OAuth token for a channel you need to have the broadcaster of that channel go through your OAuth flow https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#oauth-authorization-code-flow
This will give you a token for their channel. If you’re attempting to access Pubsub topics that require a certain scope then you’ll have to request them during that OAuth process.