Log creation of new sessions, fix some comments

This commit is contained in:
Rory& committed 2026-03-06 00:25:59 +01:00
1 parent b5c376881d
commit 3f756629e6
2 files changed
+16 -2

No files matched your search

+12
View File
@@ -141,6 +141,18 @@ export async function onIdentify(this: WebSocket, data: Payload) {
isNewSession: true,
};
if (isNewSession)
console.warn(
"[Identify/WARN] Created new session",
session.session_id,
"for user",
tokenData.user.id,
`(${tokenData.user.tag})! - Access token version`,
tokenData.tokenVersion,
"- Access token session ID:",
tokenData.decoded.did ?? "(undefined)",
);
if (tokenData.tokenVersion < CurrentTokenFormatVersion)
console.warn(
"[Identify/WARN] Access token version",