From 64957b06b7ac7cedb4ab5fd897fff3c0b9017ac6 Mon Sep 17 00:00:00 2001 From: Marnix Dessing Date: Wed, 19 Apr 2023 13:48:07 +0200 Subject: [PATCH] fix: potentially fixes invalid_request undefined error --- src/app/auth/auth.lambda.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/auth/auth.lambda.ts b/src/app/auth/auth.lambda.ts index 306fc8fc..09f69762 100644 --- a/src/app/auth/auth.lambda.ts +++ b/src/app/auth/auth.lambda.ts @@ -19,8 +19,8 @@ const OIDC = new OpenIDConnect(); const init = OIDC.init(); exports.handler = async (event: any) => { - await init; try { + await init; const params = parseEvent(event); return await handleRequest(params.cookies, params.code, params.state, dynamoDBClient, OIDC, logsClient); } catch (err) {