Beispiel #1
0
        public async Task <UserInfoDto> GetUserInfo(string userAccessToken)
        {
            var client = _auth0Client.GetUsersAuthenticatedClient(userAccessToken);

            client = _auth0Client.GetUsersAuthenticatedClient(userAccessToken);

            using var httpResponse = await client.GetAsync($"userinfo");

            var responseAsString = await httpResponse.Content.ReadAsStringAsync();

            var userInfo = JsonConvert.DeserializeObject <UserInfoDto>(responseAsString);

            return(userInfo);
        }