зеркало из https://github.com/mozilla/hawk.git
docs(server): Update return value
This commit is contained in:
Родитель
a1052d3f3f
Коммит
93ccee1dd0
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче