mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 08:23:16 +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;
|
const userId = session?.session?.factors?.user?.id;
|
||||||
|
|
||||||
if (userId) {
|
if (userId) {
|
||||||
// TODO: add org context
|
return registerU2F(userId, domain)
|
||||||
return createPasskeyRegistrationLink(userId, sessionCookie.token)
|
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
const code = resp.code;
|
return NextResponse.json(resp);
|
||||||
return registerU2F(userId, domain).then((resp) => {
|
|
||||||
return NextResponse.json(resp);
|
|
||||||
});
|
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error("error on creating passkey registration link");
|
console.error("error on creating passkey registration link");
|
||||||
|
|||||||
Reference in New Issue
Block a user