Skip to content

Commit 9beca8e

Browse files
Update get-current-user.mjs
1 parent ed7e235 commit 9beca8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/slack/actions/get-current-user/get-current-user.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ export default {
1818
const authContext = await this.slack.authTest();
1919

2020
const userId = authContext.user_id || authContext.user;
21+
if (!userId) {
22+
throw new Error(`Unable to determine user ID from auth context. Received: ${JSON.stringify(authContext)}`);
23+
}
2124

2225
let userInfo;
2326
try {

0 commit comments

Comments
 (0)