Skip to content

Commit 8ab3bef

Browse files
committed
only call sse logout when the event's sessionId matches the active one
1 parent 6680a9b commit 8ab3bef

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

  • packages/web-runtime/src/container/sse

packages/web-runtime/src/container/sse/common.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { SSEEventOptions } from './types'
22

33
export const onSSEBackchannelLogoutEvent = ({ router, authStore, sseData }: SSEEventOptions) => {
4-
if (!sseData.sessionid) {
5-
// Log out all clients when no session id is provided according to OIDC spec
6-
return router.push({ name: 'logout' })
7-
}
8-
94
if (authStore.sessionId === sseData.sessionid) {
105
return router.push({ name: 'logout' })
116
}

0 commit comments

Comments
 (0)