Skip to content

Commit

Permalink
Revert "update"
Browse files Browse the repository at this point in the history
This reverts commit 7abc36c.
  • Loading branch information
DorainPublic committed Aug 25, 2016
1 parent 7abc36c commit 7782d90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ class GetPolicy {
}
baseUrl += deadline;

var signature = hmacSha1(baseUrl, conf.SECRET_KEY);
var encodedSign = base64ToUrlSafe(signature);
var signature = exports.hmacSha1(baseUrl, conf.SECRET_KEY);
var encodedSign = exports.base64ToUrlSafe(signature);
var downloadToken = conf.ACCESS_KEY + ':' + encodedSign;

return baseUrl + '&token=' + downloadToken;
}
}

export default {urlsafeBase64Encode,generateAccessToken,PutPolicy2,GetPolicy}
export default {urlsafeBase64Encode,generateAccessToken,PutPolicy2,GetPolicy}

0 comments on commit 7782d90

Please sign in to comment.