

def get_user_details(self, response):
    'Return user details from Coinbase account'
    user_data = response['users'][0]['user']
    email = user_data.get('email', '')
    name = user_data['name']
    (fullname, first_name, last_name) = self.get_user_names(name)
    return {
        'username': name,
        'fullname': fullname,
        'first_name': first_name,
        'last_name': last_name,
        'email': email,
    }

dataset/ETHPy150Open omab/python-social-auth/social/backends/coinbase.py CoinbaseOAuth2.get_user_details/original