1
0
Fork 0
mirror of https://codeberg.org/MarkusThielker/next-ory.git synced 2025-07-05 06:09:18 +00:00

NORY-47: move identity credentials to client component

This also adds the possibility to delete identity credentials
This commit is contained in:
Markus Thielker 2025-01-03 22:03:29 +01:00
parent e83041f8ac
commit e1ee4bda43
No known key found for this signature in database
2 changed files with 63 additions and 20 deletions

View file

@ -10,6 +10,7 @@ import { RecoveryIdentityAddress, VerifiableIdentityAddress } from '@ory/client'
import { Badge } from '@/components/ui/badge';
import { Check, X } from 'lucide-react';
import { IdentityActions } from '@/components/identity/identity-actions';
import { IdentityCredentials } from '@/components/identity/identity-credentials';
interface MergedAddress {
recovery_id?: string;
@ -190,26 +191,7 @@ export default async function UserDetailsPage({ params }: { params: Promise<{ id
<CardDescription>All authentication mechanisms registered with this identity</CardDescription>
</CardHeader>
<CardContent className="space-y-4">
<Table>
<TableHeader>
<TableRow>
<TableHead>Type</TableHead>
<TableHead>Value</TableHead>
</TableRow>
</TableHeader>
<TableBody>
{
Object.entries(identity.credentials!).map(([key, value]) => {
return (
<TableRow key={key}>
<TableCell>{key}</TableCell>
<TableCell>{value.identifiers![0]}</TableCell>
</TableRow>
);
})
}
</TableBody>
</Table>
<IdentityCredentials identity={identity}/>
</CardContent>
</Card>
<Card>