Skip to content

fix: add Cache-Control headers to OAuth callback responses - #30

Merged
marcusolsson merged 1 commit into
mainfrom
fix/issue-11-cache-control-callback
May 21, 2026
Merged

fix: add Cache-Control headers to OAuth callback responses#30
marcusolsson merged 1 commit into
mainfrom
fix/issue-11-cache-control-callback

Conversation

@marcusolsson

Copy link
Copy Markdown
Contributor

Issue 11 from TODO.md

All callback responses (error, state mismatch, missing code, success) used with no cache-control directives. OAuth callbacks are one-time, security-sensitive interactions — caching them is poor hygiene.

Changes

  • Extracts a helper that always includes , , and .
  • Replaces all 4 inline calls in with the helper.
  • Adds a regression test verifying the error callback path sets the correct cache headers.

Refs: TODO.md Issue 11

@marcusolsson
marcusolsson merged commit 4996da6 into main May 21, 2026
1 check passed
@marcusolsson
marcusolsson deleted the fix/issue-11-cache-control-callback branch May 21, 2026 09:59
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.

1 participant