Curl Command in Javascript

Then in order to not leak your access token to the world. (An access token is basically a password)

Your front end will need to call your backend and the backend makes the request to Twitch API