debug: log and return credentialsReceived flag in test-auth response

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ValueOn AG 2026-02-16 23:55:06 +01:00
parent 4c3a80dcfd
commit 21c9b911ef

View file

@ -148,9 +148,15 @@ export class HttpServer {
return;
}
logger.info(`Starting auth detection tests for: ${meetingUrl}`);
const hasEmail = !!botAccountEmail;
const hasPassword = !!botAccountPassword;
logger.info(`Starting auth detection tests for: ${meetingUrl} (credentials: email=${hasEmail}, password=${hasPassword})`);
const results = await runAuthTests(meetingUrl, botAccountEmail, botAccountPassword);
// Attach credential debug info so UI can show it
(results as any).credentialsReceived = { hasEmail, hasPassword };
res.json(results);
} catch (error) {
logger.error('Error running auth tests:', error);