Cleanup logs

This commit is contained in:
Zerebos
2026-05-19 02:32:34 -04:00
parent 75cc767b58
commit b99e4d9a3d
-8
View File
@@ -114,7 +114,6 @@ function withExpiryFromSettings(
?? (typeof jwt?.jwtTokenExpiry === "string" ? now + (parseIsoDuration(jwt.jwtTokenExpiry) ?? 0) : null); ?? (typeof jwt?.jwtTokenExpiry === "string" ? now + (parseIsoDuration(jwt.jwtTokenExpiry) ?? 0) : null);
const refreshExpiresAt = const refreshExpiresAt =
typeof jwt?.jwtRefreshExpiry === "string" ? now + (parseIsoDuration(jwt.jwtRefreshExpiry) ?? 0) : null; typeof jwt?.jwtRefreshExpiry === "string" ? now + (parseIsoDuration(jwt.jwtRefreshExpiry) ?? 0) : null;
console.log("Calculated token expiry", { accessExpiresAt, refreshExpiresAt }, jwt);
return { accessExpiresAt, refreshExpiresAt }; return { accessExpiresAt, refreshExpiresAt };
} }
@@ -173,7 +172,6 @@ async function getJwtSettings(force = false): Promise<JwtSettings | null> {
if (!force && _jwtSettingsBase === base && _jwtSettings && freshEnough) return _jwtSettings; if (!force && _jwtSettingsBase === base && _jwtSettings && freshEnough) return _jwtSettings;
const jwt = await fetchJwtSettings(base); const jwt = await fetchJwtSettings(base);
console.log(jwt);
_jwtSettingsBase = base; _jwtSettingsBase = base;
_jwtSettings = jwt; _jwtSettings = jwt;
_jwtSettingsFetchedAt = Date.now(); _jwtSettingsFetchedAt = Date.now();
@@ -523,12 +521,6 @@ export function getUiAuthDebugStatus(now = Date.now()): UiAuthDebugStatus {
const accessExpiresAt = session?.accessExpiresAt ?? null; const accessExpiresAt = session?.accessExpiresAt ?? null;
const refreshExpiresAt = session?.refreshExpiresAt ?? null; const refreshExpiresAt = session?.refreshExpiresAt ?? null;
console.log("Calculating debug status", {
session,
accessExpiresAt,
refreshExpiresAt,
});
return { return {
mode: (store.settings.serverAuthMode ?? "NONE") as AuthMode, mode: (store.settings.serverAuthMode ?? "NONE") as AuthMode,
serverBase: getServerBase(), serverBase: getServerBase(),