Skip to content

Commit 6ad1cf5

Browse files
committed
Add user ID and SSE token to EventSource URL
1 parent 96b2fe5 commit 6ad1cf5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/layouts/default.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ onMounted(async () => {
131131
})
132132
133133
const esUrl = new URL(config.baseUrl + "/core/backends/sse")
134+
esUrl.searchParams.append("id", '' + auth.user?._id)
134135
esUrl.searchParams.append("key", '' + auth.user?.sseToken)
135136
var es = new ReconnectingEventSource(esUrl)
136137

0 commit comments

Comments
 (0)