From 9e24861babb60c16f99b722fcfda18fe73b776b3 Mon Sep 17 00:00:00 2001
From: ValueOn AG
Date: Mon, 16 Feb 2026 17:18:18 +0100
Subject: [PATCH] fix: enter name even for auth joins on light-meetings
(required field, without it Join fails)
Co-authored-by: Cursor
---
src/bot/joinProcedure.ts | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/bot/joinProcedure.ts b/src/bot/joinProcedure.ts
index 97ed58d..b63f9cf 100644
--- a/src/bot/joinProcedure.ts
+++ b/src/bot/joinProcedure.ts
@@ -132,11 +132,12 @@ export class JoinProcedure {
if (this._isAuthenticated) {
// Authenticated join: Auth cookies are set but we're on the light-meetings
- // page (Teams blocks /v2/ for headless browsers). We skip entering a name
- // and just click "Join now" directly. Teams will use the auth cookies to
- // identify the user even on the light-meetings page.
- this._logger.info('Authenticated join on light-meetings: skipping name, clicking Join now directly...');
- await this._page.waitForTimeout(2000);
+ // page (Teams blocks /v2/ for headless browsers). The light-meetings page
+ // REQUIRES a name to be entered — without it, "Join now" fails with
+ // "All promises were rejected". We enter the bot name AND rely on auth
+ // cookies for identification. Teams will show the user as authenticated.
+ this._logger.info('Authenticated join on light-meetings: entering name (required by light-meetings)...');
+ await this._enterBotName();
} else {
// Anonymous join: enter bot name in the name input field
await this._enterBotName();