зеркало из https://github.com/mozilla/hawk.git
Merge pull request #252 from ffflorian/patch-1
docs(server): Update return value
This commit is contained in:
Коммит
c4dd131cab
|
@ -211,7 +211,7 @@ exports.authenticate = async function (req, credentialsFunc, options) {
|
|||
artifacts: from authenticate()
|
||||
contentType: req.headers['content-type']
|
||||
|
||||
Return value: { credentials, artifacts } or throws an error.
|
||||
Return value: void or throws an error.
|
||||
*/
|
||||
|
||||
exports.authenticatePayload = function (payload, credentials, artifacts, contentType) {
|
||||
|
@ -229,7 +229,7 @@ exports.authenticatePayload = function (payload, credentials, artifacts, content
|
|||
calculatedHash: the payload hash calculated using Crypto.calculatePayloadHash()
|
||||
artifacts: from authenticate()
|
||||
|
||||
Return value: { artifacts } or throws an error.
|
||||
Return value: void or throws an error.
|
||||
*/
|
||||
|
||||
exports.authenticatePayloadHash = function (calculatedHash, artifacts) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче