From cdcffff0989aa763f712f88c3736f3321791df5b Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Mon, 24 Jun 2024 16:02:53 +0200 Subject: [PATCH] fix(api): :bug: prevent protocol error through proxy --- routes/api/webauthn/register/[step].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api/webauthn/register/[step].ts b/routes/api/webauthn/register/[step].ts index b2a8ecd..7c996f1 100644 --- a/routes/api/webauthn/register/[step].ts +++ b/routes/api/webauthn/register/[step].ts @@ -54,7 +54,7 @@ export const handler: SessionHandlers = { const options = await generateRegistrationOptions({ rpName: relyingParty.name, - rpID: relyingParty.id, + rpID: relyingParty.origin, userName: user.login, attestationType: 'none', excludeCredentials,