Skip to content

Commit 3cd44c4

Browse files
committed
test for androidx key
1 parent 45adfda commit 3cd44c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

middleware/leancloud-headers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ module.exports = function(AV) {
8787
sign = _ref[0];
8888
timestamp = _ref[1];
8989
master = _ref[2];
90-
key = master === 'master' ? AV.masterKey : ( master === 'ax-sig-1' ? AV._config.androidxKey : AV.applicationKey);
90+
key = master === 'master' ? AV.masterKey : (master === 'ax-sig-1' ? AV._config.androidxKey : AV.applicationKey);
9191
validSign = signByKey(timestamp, key);
9292
if (validSign === sign.toLowerCase()) {
9393
if (master === 'master') {

0 commit comments

Comments
 (0)