bumps secret to payload context

This commit is contained in:
James
2020-11-21 14:34:38 -05:00
parent 16d308f452
commit e5043e73e3
7 changed files with 12 additions and 12 deletions

View File

@@ -38,7 +38,7 @@ export default [
beforeValidate: [
async ({ data, req, value }) => {
if (data.apiKey) {
return crypto.createHmac('sha1', req.payload.config.secret)
return crypto.createHmac('sha1', req.payload.secret)
.update(data.apiKey)
.digest('hex');
}