I have added the script <script src="https://extension-files.twitch.tv/helper/v1/twitch-ext.min.js"></script>
to my index.html file and in the browser console I can access all the twitch methods but it is not available in code.
The JS Helper script added before your script is in the HTML tree?
If this doesn’t work then this suggests onAuthorized is also not working and thats required for an extension to complete loading and be permitted to be visible.
You also don’t need to cast it to const twitch should be able to use window.Twitch.ext.onContext directly, additionally window.Twitch.ext.onContext is not for the config service it’s for channel/video update data.
Extension config is loaded via window.Twitch.ext.configuration.onChanged
is the code trying to call window.Twitch in clientSide browser code
Or is it somewhere in the server side code and it’s not contextuall in the browser
You say you are trying to access the config service, if you are doing this “in a server” then you need to call the API not the JS helper. So I’m wondering if this code is contextually in the wrong place
To keep It in line with Angular way of things, you can create a new Subject in RxJS and use the TwitchAPI events for your subscriptions. In VueJS I created a Reactive value that handles all about Authentication on Twitch. I’d do the same for Angular in the form of a RxJS Observable. It’s really not that hard. Just listen to the Events from the API.