Am I allowed to swear in commit messages?
+1
-1
@@ -154,7 +154,7 @@ const tokenFetch = async (url, options) => {
|
||||
let bearer = accessToken;
|
||||
|
||||
//if expired (10 minutes, normally)
|
||||
const expired = new Date(decode(accessToken).exp * 600) < Date.now();
|
||||
const expired = new Date(decode(accessToken).exp) < Date.now() / 1000;
|
||||
|
||||
if (expired) {
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user