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(types): hmacKey only mandatory with fastify/cookie #148

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

hobi9
Copy link
Contributor

@hobi9 hobi9 commented Nov 4, 2023

Hi, with the following pr i'm trying to fix the issue i opened yesterday regarding the mismatch between the plugin docs and the options typing when using @fastify/cookie as sessionPlugin. Now csrfOpts is not mandatory anymore and csrfOpts.hmacKey is only required when csrfOpts.userInfo is true. This would be my first pr so let me know if there's something missing.

Checklist

@Uzlopak Uzlopak changed the title this commit fixes #147 fix(types): hmacKey only mandatory with fastify/cookie Nov 4, 2023
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 3eadd2e into fastify:master Nov 6, 2023
@hobi9 hobi9 deleted the fix/csrfOpts-types branch November 6, 2023 22:39
@hobi9 hobi9 restored the fix/csrfOpts-types branch November 6, 2023 22:55
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