chat.html: pass session_id to auth endpoint for consistent session
Some checks failed
BotUI CI / build (push) Failing after 51m12s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-06 13:37:40 -03:00
parent 4c5f93fc71
commit ff6dfcf126

View file

@ -1458,6 +1458,7 @@
var authUrl = "/api/auth?bot_name=" + encodeURIComponent(botName);
if (stored.user_id) authUrl += "&user_id=" + encodeURIComponent(stored.user_id);
if (stored.session_id) authUrl += "&session_id=" + encodeURIComponent(stored.session_id);
fetch(authUrl)
.then(function (response) {