Closed KirillTregubov closed 1 year ago
Can you add a test for the type?
I have added tests to the jwt.test-d.ts
file.
Interestingly, while looking around in the codebase, I could not find a justification for the onlyCookie
definition on the VerifyOptions
type. It is not documented in the README, and onlyCookie does not seem to be used in the verify
function inside jwt.js
. Please let me know if this is safe to remove.
Closes #313
Checklist
npm run test
andnpm run benchmark