Build plugins

This commit is contained in:
Gregory Schier
2025-03-08 08:06:18 -08:00
parent cdce2ac53a
commit 12233cb6f6
7 changed files with 550 additions and 154 deletions

View File

@@ -130,7 +130,7 @@ async function getOrRefreshAccessToken(ctx, contextId, {
if (token == null) {
return null;
}
const now = Date.now() / 1e3;
const now = Date.now();
const isExpired = token.expiresAt && now > token.expiresAt;
if (!isExpired && !forceRefresh) {
return token;