All sessions in the shape expected by the admin dashboard.
()
| 102 | |
| 103 | /** All sessions in the shape expected by the admin dashboard. */ |
| 104 | getAllSessions(): Array<{ id: string; userId: string; createdAt: number }> { |
| 105 | return this.store.getAll().map((s) => ({ |
| 106 | id: s.token, |
| 107 | userId: s.userId, |
| 108 | createdAt: s.createdAt.getTime(), |
| 109 | })); |
| 110 | } |
| 111 | |
| 112 | /** Sessions owned by a specific user — used by the per-user API. */ |
| 113 | getUserSessions(userId: string) { |
no test coverage detected