Skip to content

Commit

Permalink
fix: non allowed comma in getSecuredApiKeyRemainingValidity
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjacobs authored and nunomaduro committed Oct 8, 2019
1 parent cff5f96 commit f3631a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/server/builds/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,7 @@ AlgoliaSearchNodeJS.prototype.generateSecuredApiKey = function generateSecuredAp
return new Buffer(securedKey + searchParams).toString('base64');
};

AlgoliaSearchNodeJS.prototype.getSecuredApiKeyRemainingValidity = function getSecuredApiKeyRemainingValidity(
securedAPIKey,
) {
AlgoliaSearchNodeJS.prototype.getSecuredApiKeyRemainingValidity = function getSecuredApiKeyRemainingValidity(securedAPIKey) {
var decodedString = new Buffer(securedAPIKey, 'base64').toString('ascii');

var regex = /validUntil=(\d+)/;
Expand Down

0 comments on commit f3631a3

Please sign in to comment.