whole_func_string: function getUser ({accessToken}) {
    return fetch(`${CORE_API}/user`, {
      headers: {
        'user-agent': USER_AGENT,
        'authorization': `Bearer ${accessToken}`,
        'accept': 'application/json'
      }
    })
      .then(handleErrors)
      .then(res => res.json())
  }
func_code_string: function getUser ({accessToken}) {
    return fetch(`${CORE_API}/user`, {
      headers: {
        'user-agent': USER_AGENT,
        'authorization': `Bearer ${accessToken}`,
        'accept': 'application/json'
      }
    })
      .then(handleErrors)
      .then(res => res.json())
  }
func_documentation_string: Gets a logged-in user's private Mojang account information.
  
  @param {Object} session - object from authentication
  @param {string} session.accessToken - valid access token for the user's account
  @returns {Promise<MojangUser>} resolves if access token is valid
  @see {@link http://wiki.vg/Mojang_API#User_Info}