-
Notifications
You must be signed in to change notification settings - Fork 40
Offer an option to specify a cache for conditionally fetching public keys #81
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
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
b844d07
feat: implement cache + conditional request support
francisfuzz 5425c02
fix: run lint:fix and commit changes
francisfuzz 373e252
test: include assertion for cache
francisfuzz 9a48b50
fix: update test name for setup
francisfuzz 54b514b
docs: leave TODO
francisfuzz 4d06267
fix: update signature to return complete cache
francisfuzz 94c111e
refactor: define VerificationKeysCache type
francisfuzz d421896
refactor: drop export
francisfuzz 73ae790
fix: use key, not keyId
francisfuzz e62932a
fix: use standardized id value
francisfuzz 029c584
fix: lint
francisfuzz 6fdeb95
refactor: use existing type
francisfuzz d10e983
fix: use explicit assertions in typescript tests
francisfuzz 8cda7cc
refactor: de-dupe VerifyRequestInterface
francisfuzz cd20041
fix: remove unused dep
francisfuzz 58f4606
test: return cache when 304
francisfuzz d62dd94
Update index.d.ts
francisfuzz 4828168
refactor: scope constant for reuse
francisfuzz 81a6f33
feat: return cache key in .verifyAndParseRequest
francisfuzz 7a740cc
Merge branch 'main' into 9-cache
francisfuzz 6322126
docs: update verifyRequestByKeyId example
francisfuzz 693ca29
docs: update fetchVerificationKeys
francisfuzz 5397672
docs: update verifyAndParseRequest
francisfuzz 2cb7b3a
docs: update verifyRequestByKeyId
francisfuzz 73f15e4
fix: drop brackets
francisfuzz 903cdfe
fix: remove newline
francisfuzz c7b600e
test: assert cache arg is acceptable
francisfuzz c4320eb
fix: remove extra backticks
francisfuzz fb4f95c
test: add test for cache verification
francisfuzz ec40132
fix: add newline back
francisfuzz 8389fc2
fix: remove example script
francisfuzz f9707c5
fix: add newline between section
francisfuzz 5fa5d20
docs: correct true method name
francisfuzz 15ec544
docs: annotate isValidRequest
francisfuzz 13fbe9e
docs: update constants
francisfuzz a975a31
test: update mock etag values
francisfuzz 861f2e3
Merge branch 'main' into 9-cache
francisfuzz 2cca2a9
Merge branch 'main' into 9-cache
gr2m 659a108
test: adapt latest changes from `main` to conditional request APIs
gr2m 47c473e
style: prettier
gr2m e71f3f1
use lowercase header, use same etag value as in other tests
gr2m d3ebeb5
Update lib/verification.js
gr2m File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.