diff options
Diffstat (limited to 'app/routes')
| -rw-r--r-- | app/routes/auth.register.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/routes/auth.register.tsx b/app/routes/auth.register.tsx index 01b0699..2b5ad2a 100644 --- a/app/routes/auth.register.tsx +++ b/app/routes/auth.register.tsx @@ -34,14 +34,17 @@ export async function action({ request }: Route.ActionArgs) { rpID, userID: new Uint8Array([109, 105, 99, 114, 111, 98, 108, 111, 103]), // "microblog" userName: "admin", + userDisplayName: "admin", attestationType: "none", authenticatorSelection: { residentKey: "required", userVerification: "required", }, }); + // hints は WebAuthn L3 の新フィールドで古い iOS が処理できないため除外 + const { hints: _hints, ...safeOptions } = options as typeof options & { hints?: unknown }; session.set("challenge", options.challenge); - return Response.json(options, { + return Response.json(safeOptions, { headers: { "Set-Cookie": await commitSession(session) }, }); } |
