From 8f4813b01a233b50ca0af82ea8a2d871fa1e1f33 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 28 Nov 2022 14:09:18 +0000 Subject: [PATCH] Fix for account portal. --- packages/backend-core/src/middleware/authenticated.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend-core/src/middleware/authenticated.ts b/packages/backend-core/src/middleware/authenticated.ts index 525cc9d766..fcf07c50a5 100644 --- a/packages/backend-core/src/middleware/authenticated.ts +++ b/packages/backend-core/src/middleware/authenticated.ts @@ -68,7 +68,7 @@ async function checkApiKey(apiKey: string, populateUser?: Function) { */ export = function ( noAuthPatterns: EndpointMatcher[] = [], - opts: { publicAllowed: boolean; populateUser?: Function } = { + opts: { publicAllowed?: boolean; populateUser?: Function } = { publicAllowed: false, } ) {