mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 09:19:56 -05:00
Cleanup logs
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user