Skip to content

Commit

Permalink
Fix "bind" call when clearing SciServer tokens. Fixes #1654 (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb authored Apr 16, 2020
1 parent a5b4c2f commit 1be5acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/sciserver-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
tokens[username] = tokens[username] || {};
if (!tokens[username][password]) {
tokens[username][password] = fetchNewToken(username, password);
setTimeout(clearToken.bind(username, password), 23*hours);
setTimeout(clearToken.bind(null, username, password), 23*hours);
}
return tokens[username][password];
}
Expand Down

0 comments on commit 1be5acb

Please sign in to comment.