diff --git a/dashboard/src/app/user/[id]/page.tsx b/dashboard/src/app/user/[id]/page.tsx index 8c7b31d..c77dc4d 100644 --- a/dashboard/src/app/user/[id]/page.tsx +++ b/dashboard/src/app/user/[id]/page.tsx @@ -11,21 +11,11 @@ export default async function UserDetailsPage({ params }: { params: Promise<{ id const identityId = (await params).id; const identityApi = await getIdentityApi(); - const identity = await identityApi.getIdentity({ - id: identityId, - includeCredential: [ - 'code', - 'code_recovery', - 'link_recovery', - 'lookup_secret', - 'oidc', - 'passkey', - 'password', - 'totp', - 'webauthn', - ], - }) - .then((response) => response.data) + const identity = await identityApi.getIdentity({ id: identityId }) + .then((response) => { + console.log('identity', response.data); + return response.data; + }) .catch(() => { console.log('Identity not found'); }); @@ -85,11 +75,11 @@ export default async function UserDetailsPage({ params }: { params: Promise<{ id { - Object.entries(identity.credentials).map(([key, value]) => { + Object.entries(identity.credentials!).map(([key, value]) => { return ( {key} - {value.identifiers[0]} + {value.identifiers![0]} ); })