Skip to content

Commit

Permalink
fix(dbAuth): Delete cookie header before setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Nov 11, 2024
1 parent 457d1c7 commit c86829a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/auth-providers/dbAuth/api/src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,11 @@ export function getDbAuthResponseBuilder(

if (setCookieHeaders.length > 0) {
if ('multiValueHeaders' in event) {
delete headers['set-cookie']
delete headers['Set-Cookie']
dbAuthResponse.multiValueHeaders = {
'Set-Cookie': setCookieHeaders,
}
delete headers['set-cookie']
} else {
headers['set-cookie'] = setCookieHeaders
}
Expand Down

0 comments on commit c86829a

Please sign in to comment.