Skip to content

Commit

Permalink
Revert "Fix "Authentication token is not verified" problem (#116)"
Browse files Browse the repository at this point in the history
This reverts commit 5499fca.
  • Loading branch information
erdemdmr committed Feb 6, 2024
1 parent d76428e commit 8de5804
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@ var utils = module.exports = {
return shaSum.digest('base64');
},
generateHashV2: function (apiKey, separator, uri, randomString, secretKey, body) {
var payload = randomString + uri;
if (Object.keys(body).length > 0) {
payload += JSON.stringify(body)
}
var signature = crypto
.createHmac('sha256', secretKey)
.update(payload)
.update(randomString + uri + JSON.stringify(body))
.digest('hex');

var authorizationParams = [
Expand Down

0 comments on commit 8de5804

Please sign in to comment.