diff --git a/apps/manacore/apps/web/src/lib/stores/auth.svelte.ts b/apps/manacore/apps/web/src/lib/stores/auth.svelte.ts index a373da08e..9bd0bb316 100644 --- a/apps/manacore/apps/web/src/lib/stores/auth.svelte.ts +++ b/apps/manacore/apps/web/src/lib/stores/auth.svelte.ts @@ -213,6 +213,18 @@ export const authStore = { return authService.getSecurityEvents(); }, + async listSessions() { + const authService = getAuthService(); + if (!authService) return []; + return authService.listSessions(); + }, + + async revokeSession(sessionId: string) { + const authService = getAuthService(); + if (!authService) return { success: false, error: 'Auth not available' }; + return authService.revokeSession(sessionId); + }, + /** * Sign in with email and password */ diff --git a/apps/manacore/apps/web/src/routes/(app)/settings/+page.svelte b/apps/manacore/apps/web/src/routes/(app)/settings/+page.svelte index fa69256a1..1f4a62c3c 100644 --- a/apps/manacore/apps/web/src/routes/(app)/settings/+page.svelte +++ b/apps/manacore/apps/web/src/routes/(app)/settings/+page.svelte @@ -1,7 +1,12 @@ + +
{t.subtitle}
+{t.noSessions}
+ {:else} +