From e8847d6c1aa7254928496ed855979bdcf9734ea5 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Mon, 25 Dec 2023 15:52:54 +0000 Subject: Expected origin switch is the right way round! --- api/auth/_verifyRegistrationResponse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/auth/_verifyRegistrationResponse.ts b/api/auth/_verifyRegistrationResponse.ts index 90899ad..42251da 100644 --- a/api/auth/_verifyRegistrationResponse.ts +++ b/api/auth/_verifyRegistrationResponse.ts @@ -25,7 +25,7 @@ export default async function verifyRegistrationResponse( const verification = await innerVerifyRegistrationResponse({ response: registrationResponse, expectedChallenge, - expectedOrigin: env.ENVIRONMENT === 'dev' + expectedOrigin: env.ENVIRONMENT === 'prod' ? 'https://scotsleidassocie.org' : 'https://staging.scotsleidassocie.org', expectedRPID: RELYING_PARTY.id, -- cgit v1.2.3