public async Task <SessionInfo> SetAccessToken(string token) { var session = this.HttpContext.Session; var result = await sessionInfoProvider.SetTwitchTokenAsync(session, token); var user = await sessionInfoProvider.GetTwitchUserAsync(session, token); if (user != null) { await playerManager.CreatePlayerIfNotExistsAsync(user.Id, user.Login); } return(result); }