Skip to content

feat: adds test to check session cookie setting and timezone #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: 4.1
Choose a base branch
from

Conversation

namsnath
Copy link

@namsnath namsnath commented Jun 11, 2025

@namsnath namsnath requested a review from porcellus July 3, 2025 10:09
@namsnath namsnath requested a review from porcellus July 23, 2025 09:07
.map((cookieStr) => setCookieParser.splitCookiesString(cookieStr))
.flat(); // Since we have an array of arrays now

console.log(cookies);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug log

const accessTokenCookie = parsedCookies.find((info) => (info?.key ?? info?.name) == "sAccessToken");
const refreshTokenCookie = parsedCookies.find((info) => (info?.key ?? info?.name) === "sRefreshToken");

console.log(new Date(accessTokenCookie.expires).getTimezoneOffset())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants