From 15d998ac73666236e978ea1d4708b01abc071b6f Mon Sep 17 00:00:00 2001 From: Jeffrey Alan Scudder Date: Fri, 27 Mar 2026 16:54:44 -0700 Subject: [PATCH] debug: log handle + content type in chat auth path Co-Authored-By: Claude Opus 4.6 (1M context) --- session-server/chat-manager.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/session-server/chat-manager.mjs b/session-server/chat-manager.mjs index 720f4b0de..5e8edc5d0 100644 --- a/session-server/chat-manager.mjs +++ b/session-server/chat-manager.mjs @@ -371,10 +371,11 @@ export class ChatManager { authorized = instance.authorizedConnections[id].user; console.log("💬 Pre-authorized"); } else { - console.log("💬 Authorizing..."); + console.log("💬 Authorizing...", "handle:", msg.content.handle, "token:", msg.content.token?.slice(0, 10) + "...", "content-type:", typeof msg.content); authorized = await this.authorize(instance, msg.content.token); // Fallback: AC device token (from ac-native device-token API) if (!authorized && msg.content.handle && msg.content.token) { + console.log("💬 Trying device token auth for @" + msg.content.handle); authorized = await this.authorizeDeviceToken(instance, msg.content.handle, msg.content.token); } if (authorized) { -- 2.51.2