Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
dac09 committed Jan 19, 2024
1 parent 06c07dc commit bf2b589
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/auth-providers/dbAuth/api/src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bf2b589

Please sign in to comment.