chat.html: pass session_id to auth endpoint for consistent session
Some checks failed
BotUI CI / build (push) Failing after 51m12s
Some checks failed
BotUI CI / build (push) Failing after 51m12s
This commit is contained in:
parent
4c5f93fc71
commit
ff6dfcf126
1 changed files with 1 additions and 0 deletions
|
|
@ -1458,6 +1458,7 @@
|
||||||
|
|
||||||
var authUrl = "/api/auth?bot_name=" + encodeURIComponent(botName);
|
var authUrl = "/api/auth?bot_name=" + encodeURIComponent(botName);
|
||||||
if (stored.user_id) authUrl += "&user_id=" + encodeURIComponent(stored.user_id);
|
if (stored.user_id) authUrl += "&user_id=" + encodeURIComponent(stored.user_id);
|
||||||
|
if (stored.session_id) authUrl += "&session_id=" + encodeURIComponent(stored.session_id);
|
||||||
|
|
||||||
fetch(authUrl)
|
fetch(authUrl)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue