fix(slack): use SLACK_USER_TOKEN when connecting to Slack (#28103)

* fix(slack): use SLACK_USER_TOKEN when connecting to Slack (closes #26480)

* test(slack): fix account fixture typing for user token source

---------

Co-authored-by: Tak Hoffman <[email protected]>
This commit is contained in:
Glucksberg
2026-03-01 11:05:35 -06:00
committed by GitHub
co-authored by Tak Hoffman
parent 46da76e267
commit 6dbbc58a8d
12 changed files with 27 additions and 13 deletions
+1 -1
View File
@@ -327,7 +327,7 @@ async function resolveSlackNames(params: {
entries: string[];
}) {
const account = resolveSlackAccount({ cfg: params.cfg, accountId: params.accountId });
const token = account.config.userToken?.trim() || account.botToken?.trim();
const token = account.userToken || account.botToken?.trim();
if (!token) {
return new Map<string, string>();
}