Include auth state

This commit is contained in:
Max Goodhart
2025-06-14 20:43:48 +00:00
parent 42a5360654
commit 53c96742c0
2 changed files with 3 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ export class StateWrapper extends EventEmitter {
return state return state
} }
update(value: StreamwallState) { update(value: Partial<StreamwallState>) {
this._value = { ...this._value, ...value } this._value = { ...this._value, ...value }
this.emit('state', this) this.emit('state', this)
} }

View File

@@ -408,6 +408,8 @@ async function initApp({ baseURL, clientStaticPath }: AppOptions) {
client.ws.close() client.ws.close()
} }
} }
currentStreamwallConn?.clientState.update({ auth: auth.getState() })
}) })
return { app, db, auth } return { app, db, auth }