public IActionResult Authorized(string state, string code, string error) { if (error != null) { return(Error()); } var token = spotify.GetTokenAsync(redirectUri, code).Result; Response.Cookies.Append("session_token", sessions.CreateSession(token.Content.access_token), new CookieOptions() { Path = "/", HttpOnly = false, Secure = false }); return(new RedirectResult("/Recommendations")); }