Added passkey support

This commit is contained in:
2025-08-07 23:03:17 +02:00
parent 28e4f8467b
commit 0a4f5a7d36
17 changed files with 1133 additions and 86 deletions

View File

@@ -0,0 +1,22 @@
import { getSession } from "@/lib/auth/session"
import { PasskeyAdd } from "../_components/passkey"
import PasskeysList from "../_components/passkeys-list"
export default async function UserPage() {
const { session, redirect } = await getSession()
if (!session) {
redirect("/login")
}
return (
<div className="p-6">
<div className="mb-6">
<h1 className="block mb-2 text-2xl font-bold text-foreground">User Profile</h1>
<h1 className="block text-muted-foreground">Manage user settings</h1>
</div>
<PasskeyAdd />
<PasskeysList />
</div>
)
}