X-Git-Url: http://git.squeep.com/?p=squeep-indieauth-helper;a=blobdiff_plain;f=lib%2Fcommunication.js;fp=lib%2Fcommunication.js;h=4856985ce3f83c4373db7f0653d4064b453d10e2;hp=a9eb66100d2c2ef9525b4dc75bddb31b0769c060;hb=47ce7745ccd0d263d1a0228668c9cd70c3e841a6;hpb=9d77dc15cee59356a4a4f7935db6a450b04a083c diff --git a/lib/communication.js b/lib/communication.js index a9eb661..4856985 100644 --- a/lib/communication.js +++ b/lib/communication.js @@ -73,7 +73,7 @@ class Communication { */ /** * Create a code verifier and its challenge. - * @param {Number} length + * @param {Number} length of verifier string, between 43 and 128 * @returns {Promise} */ static async generatePKCE(length = 128) { @@ -219,9 +219,10 @@ class Communication { /** - * Parse and add any header link relations to mf data. + * Parse and add any header link relations from response to microformat data. * @param {Object} microformat * @param {Object} response + * @param {Object} response.headers */ _mergeLinkHeader(microformat, response) { const _scope = _fileScope('_mergeLinkHeader');