Skip to content

Commit

Permalink
chore: use latest TS version
Browse files Browse the repository at this point in the history
  • Loading branch information
peterphanouvong committed Apr 30, 2024
1 parent 005ed76 commit 7da3a4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
},
"dependencies": {
"@babel/preset-env": "^7.23.9",
"@kinde-oss/kinde-typescript-sdk": "^2.8.0",
"@kinde-oss/kinde-typescript-sdk": "2.9.0",
"cookie": "^0.6.0",
"crypto-js": "^4.1.1",
"jwt-decode": "^3.1.2",
Expand Down
14 changes: 8 additions & 6 deletions src/session/sessionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,14 @@ export const pageRouterSessionManager = (req, res) => {
]);
},
destroySession: () => {
res?.setHeader('Set-Cookie', [ ...COOKIE_LIST.map((name) =>
cookie.serialize(name, '', {
domain: config.cookieDomain ? config.cookieDomain : undefined,
maxAge: -1,
...GLOBAL_COOKIE_OPTIONS
}))
res?.setHeader('Set-Cookie', [
...COOKIE_LIST.map((name) =>
cookie.serialize(name, '', {
domain: config.cookieDomain ? config.cookieDomain : undefined,
maxAge: -1,
...GLOBAL_COOKIE_OPTIONS
})
)
]);
}
};
Expand Down

0 comments on commit 7da3a4a

Please sign in to comment.