mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 05:06:55 +00:00
remove createpasskeycreation code for u2f
This commit is contained in:
@@ -26,13 +26,9 @@ export async function POST(request: NextRequest) {
|
||||
const userId = session?.session?.factors?.user?.id;
|
||||
|
||||
if (userId) {
|
||||
// TODO: add org context
|
||||
return createPasskeyRegistrationLink(userId, sessionCookie.token)
|
||||
return registerU2F(userId, domain)
|
||||
.then((resp) => {
|
||||
const code = resp.code;
|
||||
return registerU2F(userId, domain).then((resp) => {
|
||||
return NextResponse.json(resp);
|
||||
});
|
||||
return NextResponse.json(resp);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error("error on creating passkey registration link");
|
||||
|
||||
Reference in New Issue
Block a user