public async Task <User> Authenticate(string accessToken) { var userInfoResult = await _client.GetUserInfoAsync(accessToken); if (userInfoResult.IsError) { throw new AccessTokenException(); } return(GetUserInfo(userInfoResult.Claims)); }