Skip to content

Commit 53c9674

Browse files
committed
Include auth state
1 parent 42a5360 commit 53c9674

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/streamwall-control-server/src/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class StateWrapper extends EventEmitter {
7272
return state
7373
}
7474

75-
update(value: StreamwallState) {
75+
update(value: Partial<StreamwallState>) {
7676
this._value = { ...this._value, ...value }
7777
this.emit('state', this)
7878
}

packages/streamwall-control-server/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ async function initApp({ baseURL, clientStaticPath }: AppOptions) {
408408
client.ws.close()
409409
}
410410
}
411+
412+
currentStreamwallConn?.clientState.update({ auth: auth.getState() })
411413
})
412414

413415
return { app, db, auth }

0 commit comments

Comments
 (0)