Skip to content

Commit

Permalink
Uppercase Cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
dac09 committed Apr 16, 2024
1 parent 42f341a commit 52d29b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/api/src/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface AuthorizationHeader {
export const parseAuthorizationCookie = (
event: APIGatewayProxyEvent | Request,
) => {
const cookie = getEventHeader(event, 'cookie')
const cookie = getEventHeader(event, 'Cookie')

// Unauthenticated request
if (!cookie) {
Expand Down Expand Up @@ -113,7 +113,6 @@ export const getAuthenticationContext = async ({
let schema: string | undefined

// The actual session parsing is done by the auth decoder
// Priority given to cookie
if (cookieHeader) {
token = cookieHeader.rawCookie
type = cookieHeader.type
Expand Down

0 comments on commit 52d29b9

Please sign in to comment.