Skip to content
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

fix: pass cookie options to delete #12820

Merged
merged 1 commit into from
Jan 2, 2025
Merged

fix: pass cookie options to delete #12820

merged 1 commit into from
Jan 2, 2025

Conversation

ascorbic
Copy link
Contributor

Changes

Currently we're not passing any options to cookie.delete() when destroying a session. This was meaning the cookie wasn't being properly deleted, because when created it passes some default options.

This PR ensures that the same options are passed to both create and delete the cookie.

This bug was reported in a comment on the RFC

Testing

Added test cases

Docs

Copy link

changeset-bot bot commented Dec 23, 2024

🦋 Changeset detected

Latest commit: 657b2ff

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Dec 23, 2024
Copy link

codspeed-hq bot commented Dec 23, 2024

CodSpeed Performance Report

Merging #12820 will not alter performance

Comparing session-cookie-destroy (657b2ff) with main (70a9f0b)

Summary

✅ 4 untouched benchmarks

@ascorbic ascorbic merged commit 892dd9f into main Jan 2, 2025
16 checks passed
@ascorbic ascorbic deleted the session-cookie-destroy branch January 2, 2025 11:19
@astrobot-houston astrobot-houston mentioned this pull request Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants