We need to show opened sessions of the user, so user will be able to detect attack or block session on compromised device. - [ ] Add to `server/modules/auth.ts` [`addSyncMap`](https://logux.org/node-api/#globals-addsyncmap) and [`addSyncMapFilter`](https://logux.org/node-api/#globals-addsyncmapfilter) to create `session` resource loading it from database - [ ] Add tests - [ ] Add `core/session.ts` `syncMapTemplate` to use this resource (*without* `offline: true, remote: false` in contract with other `syncMapTemplate`) - [ ] Add `session` usage to `core/pages/profile.ts` - [ ] Add tests to `core/test/pages/profile.test.ts` - [ ] Add UI for sessions to Profile page in `web/pages/profile.svelte`. We need: created time, last used time, client ID, delete button. - [ ] Add mock data to Profile page story.
We need to show opened sessions of the user, so user will be able to detect attack or block session on compromised device.
server/modules/auth.tsaddSyncMapandaddSyncMapFilterto createsessionresource loading it from databasecore/session.tssyncMapTemplateto use this resource (withoutoffline: true, remote: falsein contract with othersyncMapTemplate)sessionusage tocore/pages/profile.tscore/test/pages/profile.test.tsweb/pages/profile.svelte. We need: created time, last used time, client ID, delete button.