From 9faba3dc29b95cffc2c87c0b901c773db713afd9 Mon Sep 17 00:00:00 2001 From: Markus Thielker Date: Sat, 14 Dec 2024 03:41:14 +0100 Subject: [PATCH] NORY-22: remove identity/session page --- dashboard/src/app/user/[id]/sessions/page.tsx | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 dashboard/src/app/user/[id]/sessions/page.tsx diff --git a/dashboard/src/app/user/[id]/sessions/page.tsx b/dashboard/src/app/user/[id]/sessions/page.tsx deleted file mode 100644 index 2f1ad70..0000000 --- a/dashboard/src/app/user/[id]/sessions/page.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import React from 'react'; -import { getIdentityApi } from '@/ory/sdk/server'; -import { ErrorDisplay } from '@/components/error'; - -export default async function UserDetailsPage({ params }: { params: Promise<{ id: string }> }) { - - const identityId = (await params).id; - - console.log('Loading identity', identityId); - - const identityApi = await getIdentityApi(); - const sessions = await identityApi.listIdentitySessions({ id: identityId }) - .then((response) => response.data) - .catch(() => { - console.log('Identity not found'); - }); - - if (!sessions) { - return ; - } - - return ( -
-
-

Sessions

-

These are all active sessions of the identity

-
-
- ); -}