Esempio n. 1
0
        public IActionResult Index(string code, string scope)
        {
            if (code == null)
            {
                return(BadRequest());
            }
            var jsonResponse = twitchService.GetOAuth(code);

            ZBotUser newUser = twitchService.RegisterUser(jsonResponse);

            zbotService.AddUser(newUser);

            return(View(newUser));
        }