fix webauthn flow, state

This commit is contained in:
peintnermax
2023-08-22 13:15:33 +02:00
parent ead206a188
commit 2845ad246c
12 changed files with 60 additions and 43 deletions

View File

@@ -45,12 +45,11 @@ export async function POST(request: NextRequest) {
if (body) {
const { loginName, authRequestId } = body;
const domain: string = request.nextUrl.hostname;
// const domain: string = request.nextUrl.hostname;
return createSessionAndUpdateCookie(
loginName,
undefined,
domain,
undefined,
authRequestId
)