From bf2b58979df01aa7262afb27d81fa19092ba0c87 Mon Sep 17 00:00:00 2001 From: Daniel Choudhury Date: Fri, 19 Jan 2024 16:18:43 +0700 Subject: [PATCH] Remove unused function --- packages/auth-providers/dbAuth/api/src/shared.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/auth-providers/dbAuth/api/src/shared.ts b/packages/auth-providers/dbAuth/api/src/shared.ts index f4f0451dbe94..cf2cfef29e03 100644 --- a/packages/auth-providers/dbAuth/api/src/shared.ts +++ b/packages/auth-providers/dbAuth/api/src/shared.ts @@ -96,13 +96,6 @@ const legacyDecryptSession = (encryptedText: string) => { export const extractCookie = (event: APIGatewayProxyEvent | Request) => { return eventGraphiQLHeadersCookie(event) || getEventHeader(event, 'Cookie') } - -function extractEncryptedSessionFromHeader( - event: APIGatewayProxyEvent | Request -) { - return getEventHeader(event, 'Authorization')?.split(' ')[1] -} - // whether this encrypted session was made with the old CryptoJS algorithm export const isLegacySession = (text: string | undefined) => { if (!text) {