mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 00:03:05 +00:00
Log creation of new sessions, fix some comments
This commit is contained in:
1 parent
b5c376881d
commit
3f756629e6
2 files changed
+16
-2
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user