public async Task <bool> SendExtensionPubsubMessageAsync(ExtensionPubsubMessage message)
        {
            try
            {
                var request = new HttpRequestMessage(HttpMethod.Post, $"message/{message.ChannelId}");

                var perms = new Dictionary <string, string[]>
                {
                    { "send", new[] { "*" } }
                };

                var token = _jwtService.CreateExternalTwitchExtensionJwt(message.ChannelId, perms);

                request.Headers.Add("Client-ID", _configuration["Twitch:ExtensionId"]);
                request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token);

                request.Content = new StringContent(JsonSerializer.Serialize(new
                {
                    ContentType = "application/json",
                    Message     = JsonSerializer.Serialize(message.Message),
                    message.Targets
                }));

                var response = await _httpClient.SendAsync(request);

                response.EnsureSuccessStatusCode();

                return(response.StatusCode == HttpStatusCode.NoContent);
            }
            catch
            {
                return(false);
            }
        }
        public ActionResult <string> CreateJwt()
        {
            var perms = new Dictionary <string, string[]>
            {
                { "send", new [] { "*" } }
            };

            return(_jwtService.CreateExternalTwitchExtensionJwt("102943601", perms));
        }