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

chore: make sha1 the default algo #98

Merged
merged 5 commits into from
Feb 13, 2023
Merged

Conversation

kurtextrem
Copy link
Contributor

Checklist

package.json Outdated Show resolved Hide resolved
fnv1a.js Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@kurtextrem
Copy link
Contributor Author

Updated according to your review and added recommendations based on our convo in #91

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

@kurtextrem
Copy link
Contributor Author

had to fix a linter warning, sorry (my git removed a newline from fnv1a.js)

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

@Uzlopak
Copy link
Contributor

Uzlopak commented Feb 10, 2023

We could add a validation for the algorithm. So that we can throw on plugin registration and not on the first request.

Like https://github.com/fastify/fastify-cookie/blob/485db2a5676eb7c839fe9687db230777f4077a69/signer.js#L34

@Uzlopak
Copy link
Contributor

Uzlopak commented Feb 10, 2023

LOL we have that already.

Copy link
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

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

LGTM

@Uzlopak Uzlopak merged commit d2925da into fastify:master Feb 13, 2023
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.

4 participants