-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Cookie Domain/Expiration are Undefined #819
Labels
bug
Something isn't working
Comments
topether21
changed the title
Cookie Expiration Undefined
Cookie Domain/Expiration are Undefined
Sep 12, 2024
Can you try setting cookie value first before other attributes, it might not have been created yet when you set expires |
Thank you, @PackHubTH l. Let me improve the example. It sets the expiration, and the browser reads the value, but the service does not:
|
Fixed and published under 1.1.13 with test case included If this doesn't fix the issue, feel free to tag me or reopen the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Elysia is running?
1.1.12
What platform is your computer?
Darwin 24.0.0 arm64 arm
What steps can reproduce the bug?
Create a simple Elysia app
What is the expected behavior?
The cookie expires should have a defined value indicating when the cookie will expire.
What do you see instead?
I encountered an issue where the cookie expiration is returning as undefined, which is not the expected behavior.
The output shows cookie expires undefined, which suggests that the expiration date is not being set or retrieved correctly.
Have you try removing the
node_modules
andbun.lockb
and try again yet?Yes
The text was updated successfully, but these errors were encountered: