code: def account_info(remote, resp):
      
      info = get_user_info(remote)
  
      return {
          'user': {
              'email': info['email'],
              'profile': {
                  'username': info['username'],
                  'full_name': info['name']
              },
          },
          'external_id': get_user_id(remote, info['preferred_username']),
          'external_method': GLOBUS_EXTERNAL_METHOD
      }
docs: Retrieve remote account information used to find local user.
  
      It returns a dictionary with the following structure:
  
      .. code-block:: python
  
          {
              'user': {
                  'email': '...',
                  'profile': {
                      'username': '...',
                      'full_name': '...',
                  }
              },
              'external_id': 'globus-unique-identifier',
              'external_method': 'globus',
          }
  
      Information inside the user dictionary are available for other modules.
      For example, they are used from the module invenio-userprofiles to fill
      the user profile.
  
      :param remote: The remote application.
      :param resp: The response.
      :returns: A dictionary with the user information.