summaryrefslogtreecommitdiff
path: root/api/auth
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-12-25 15:52:54 +0000
committerJoe Carstairs <jcarstairs@scottlogic.com>2024-01-29 10:51:49 +0000
commite8847d6c1aa7254928496ed855979bdcf9734ea5 (patch)
tree823d2dd9c6457486514136ee7b798245c9335499 /api/auth
parent078d2d370d8cb45381b7cf793d99a63dd4c064a4 (diff)
Expected origin switch is the right way round!
Diffstat (limited to 'api/auth')
-rw-r--r--api/auth/_verifyRegistrationResponse.ts2
1 files changed, 1 insertions, 1 deletions
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,