fix: VIP session-status stale token; add missing API routes (popups, jiahao, update-config, /api/version)

This commit is contained in:
Stevenma
2026-05-10 17:28:14 +08:00
parent e711e1329d
commit 111e61431b
2151 changed files with 900047 additions and 109 deletions

18
node_modules/jsonwebtoken/lib/timespan.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
var ms = require('ms');
module.exports = function (time, iat) {
var timestamp = iat || Math.floor(Date.now() / 1000);
if (typeof time === 'string') {
var milliseconds = ms(time);
if (typeof milliseconds === 'undefined') {
return;
}
return Math.floor(timestamp + milliseconds / 1000);
} else if (typeof time === 'number') {
return timestamp + time;
} else {
return;
}
};