Exemplo n.º 1
0
        public async Task <PartyGoer> AuthenticateUserWithAccessCodeAsync(string code)
        {
            User user = await _spotifyHttpClient.RequestAccessAndRefreshTokenFromSpotifyAsync(code);

            PartyGoer partyGoer = new PartyGoer(user.SpotifyId, user.ExplicitSettings.Filter, user.Market, user.Product);

            await _partyGoerService.LoginUser(partyGoer);

            return(partyGoer);
        }