Skip to content

Commit

Permalink
Make test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Nov 12, 2024
1 parent 53772e2 commit 1d1ecb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/auth-providers/dbAuth/api/src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,10 @@ export function getDbAuthResponseBuilder(
// but only Netlify actually supports it. Vercel will just ignore it
// https://github.com/vercel/vercel/issues/7820
function supportsMultiValueHeaders(event: APIGatewayProxyEvent | Request) {
return 'multiValueHeaders' in event && !('x-vercel-id' in event.headers)
return (
'multiValueHeaders' in event &&
(!event.headers || !('x-vercel-id' in event.headers))
)
}

export const extractHashingOptions = (text: string): ScryptOptions => {
Expand Down

0 comments on commit 1d1ecb6

Please sign in to comment.