mirror of
https://github.com/streamwall/streamwall.git
synced 2025-12-06 01:45:37 -05:00
Include auth state
This commit is contained in:
@@ -72,7 +72,7 @@ export class StateWrapper extends EventEmitter {
|
||||
return state
|
||||
}
|
||||
|
||||
update(value: StreamwallState) {
|
||||
update(value: Partial<StreamwallState>) {
|
||||
this._value = { ...this._value, ...value }
|
||||
this.emit('state', this)
|
||||
}
|
||||
|
||||
@@ -408,6 +408,8 @@ async function initApp({ baseURL, clientStaticPath }: AppOptions) {
|
||||
client.ws.close()
|
||||
}
|
||||
}
|
||||
|
||||
currentStreamwallConn?.clientState.update({ auth: auth.getState() })
|
||||
})
|
||||
|
||||
return { app, db, auth }
|
||||
|
||||
Reference in New Issue
Block a user