456 Commits
Author SHA1 Message Date
zandGitHub d2cf85b5fe Delete upstream workflows
This fork does not ship upstream's releases, and its hosted-runner jobs
never start here.

Claude-Session: https://claude.ai/code/session_01HuMDfgFssPUptYUzgZ6Cp8
2026-09-24 10:00:44 -07:00
zeekayandHanzo Dev 9176fe8b5b ci: canonical pair — hanzo.yml + forge caller
github.com has no runner for hanzo-build-linux-amd64, so a caller under
.github/workflows is a gate that can never be scheduled. This is the ~7-line
caller on the plane that can (git.hanzo.ai git-runner fleet), pinned @v1.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-06 02:38:16 -07:00
Samuel SalazarandGitHub 91b4149184 ci: replace npx changelog call with npm script and fix prepare-release workflow (#1037) 2026-06-25 11:22:50 -04:00
Samuel SalazarandGitHub b746252713 ci: switch to conventionalcommits preset for semantic-release (#1020) 2026-05-01 13:13:58 -04:00
Samuel SalazarandGitHub ee15f7158e ci: add semantic-release automation (#1015) 2026-03-18 16:08:19 -04:00
Samuel SalazarandGitHub 85269c031e chore: add CODEOWNERS file (#1014) 2026-03-18 15:24:34 -04:00
1df64b0920 chore: bump jws to 4.0.1 (#1007)
* Create test.yml

* Delete .circleci directory

* Update test.yml

* bump jws to version 4.0.1

* update CI workflows

* chore: fixing test command

---------

Co-authored-by: Frederik Prijck <[email protected]>
v9.0.3
2025-12-04 11:22:43 +01:00
Jake LaceyandGitHub 0a545dc250 Release 9.0.2 (#935) v9.0.2 2023-08-30 13:25:33 +01:00
Jake LaceyandGitHub 74bd352a25 refactor: use specific lodash packages (#933)
This is to reduce the size of the bundle users have to install.
2023-08-30 13:06:25 +01:00
Jake LaceyandGitHub 28be1065a5 security: Updating semver to 7.5.4 to resolve CVE-2022-25883 (#932) 2023-08-30 13:02:58 +01:00
Jake LaceyandGitHub e04af5a485 Updating package version to 9.0.1 (#920) v9.0.1 2023-07-05 18:05:28 +01:00
Jake LaceyandGitHub 0c20772774 fix(stubs): allow decode method to be stubbed (#876)
* refactor: revert dcd6a34 to to solve #875, #870, and possibly also #876
2023-04-03 09:27:06 +01:00
925d95de54 Merge pull request from GHSA-8cf7-32gw-wr33
* Check if node version supports asymmetricKeyDetails

* Validate algorithms for ec key type

* Rename variable

* Rename function

* Add early return for symmetric keys

* Validate algorithm for RSA key type

* Validate algorithm for RSA-PSS key type

* Check key types for EdDSA algorithm

* Rename function

* Move validateKey function to module

* Convert arrow to function notation

* Validate key in verify function

* Simplify if

* Convert if to switch..case

* Guard against empty key in validation

* Remove empty line

* Add lib to check modulus length

* Add modulus length checks

* Validate mgf1HashAlgorithm and saltLength

* Check node version before using key details API

* Use built-in modulus length getter

* Fix Node version validations

* Remove duplicate validateKey

* Add periods to error messages

* Fix validation in verify function

* Make asymmetric key validation the latest validation step

* Change key curve validation

* Remove support for ES256K

* Fix old test that was using wrong key types to sign tokens

* Enable RSA-PSS for old Node versions

* Add specific RSA-PSS validations on Node 16 LTS+

* Improve error message

* Simplify key validation code

* Fix typo

* Improve error message

* Change var to const in test

* Change const to let to avoid reassigning problem

* Improve error message

* Test incorrect private key type

* Rename invalid to unsupported

* Test verifying of jwt token with unsupported key

* Test invalid private key type

* Change order of object parameters

* Move validation test to separate file

* Move all validation tests to separate file

* Add prime256v1 ec key

* Remove modulus length check

* WIP: Add EC key validation tests

* Fix node version checks

* Fix error message check on test

* Add successful tests for EC curve check

* Remove only from describe

* Remove `only`

* Remove duplicate block of code

* Move variable to a different scope and make it const

* Convert allowed curves to object for faster lookup

* Rename variable

* Change variable assignment order

* Remove unused object properties

* Test RSA-PSS happy path and wrong length

* Add missing tests

* Pass validation if no algorithm has been provided

* Test validation of invalid salt length

* Test error when signing token with invalid key

* Change var to const/let in verify tests

* Test verifying token with invalid key

* Improve test error messages

* Add parameter to skip private key validation

* Replace DSA key with a 4096 bit long key

* Test allowInvalidPrivateKeys in key signing

* Improve test message

* Rename variable

* Add key validation flag tests

* Fix variable name in Readme

* Change private to public dsa key in verify

* Rename flag

* Run EC validation tests conditionally

* Fix tests in old node versions

* Ignore block of code from test coverage

* Separate EC validations tests into two different ones

* Add comment

* Wrap switch in if instead of having an early return

* Remove unsupported algorithms from asymmetric key validation

* Rename option to allowInvalidAsymmetricKeyTypes and improve Readme

* 9.0.0

* adding migration notes to readme

* adding changelog for version 9.0.0

Co-authored-by: julienwoll <[email protected]>
v9.0.0
2022-12-21 13:36:01 +01:00
Jake LaceyandGitHub ad0184878d chore(ci): remove github test actions job (#861) 2022-12-12 10:54:12 +00:00
Jake LaceyandGitHub f5e0020ada chore(ci): configure Github Actions jobs for Tests & Security Scanning (#856)
* chore: add github actions test job
* chore: configure semgrep ci job
2022-12-02 09:15:31 +00:00
david-renaud-oktaandGitHub 44ce6fd923 fix!: Prevent accidental use of insecure key sizes & misconfiguration of secrets (#852)
* fix!: Disable use of weak RSA key sizes for asymmetric algorithms

Added checks to prevent invalid secrets from being used with the HS*** algorithms when signing and verifying
Added checks to prevent the use of insecure asymmetric key sizes except when explicitly overriden via options
Prevented Buffers containing malicious objects from being used as key material.

BREAKING CHANGE: Requires node 12.x or later to allow use of `KeyObject`
2022-11-29 11:58:59 -05:00
Jake LaceyandGitHub 59d32eeef4 fix(sign&verify)!: Remove default none support from sign and verify methods, and require it to be explicitly configured (#851)
* fix(sign&verify)!: Remove default none support from sign and verify methods, and require it to be explicitly configured

BREAKING CHANGE: Removes fallback for none algorithm for the verify method.
2022-11-29 14:32:41 +00:00
sre-57-opslevel[bot]GitHubsre-57-opslevel[bot] <113727212+sre-57-opslevel[bot]@users.noreply.github.com>
e2e43eadaf Upload OpsLevel YAML (#849)
Co-authored-by: sre-57-opslevel[bot] <113727212+sre-57-opslevel[bot]@users.noreply.github.com>
2022-10-26 10:36:39 +01:00
Nathan RajlichandGitHub 36931677b8 docs: update references vercel/ms references (#770) 2021-03-31 11:00:10 +02:00
Andy EdwardsandGitHub 6b42e17f41 docs: document "invalid token" error
closes #768
2021-02-18 17:47:53 +01:00
Mikael ViitaniemiandGitHub ac696711f2 docs: fix spelling in README.md: Peak -> Peek (#754) 2020-11-09 11:36:47 +01:00
Filip SkokanandMarcos Castany c009297558 docs: make decode impossible to discover before verify
see #741
2020-09-10 08:33:02 -03:00
Filip SkokanandMarcos Castany dcd6a34519 refactor: make decode non-enumerable
see #741
2020-09-10 08:33:02 -03:00
hiramatsutakuandGitHub 4dd584a05c docs: add jwtid to options of jwt.verify (#704) 2020-03-24 10:32:23 -04:00
dviryaminandGitHub 2687f0cdd4 Replace tilde-indexOf with includes (#647)
* Replace tilde-indexOf with includes

* remove package lock
2020-02-10 16:55:58 +01:00
Cristofer GonzalesandEduardo Diaz fda2dc7a0e Adds not to README on decoded payload validation (#646)
Adds a note to the README that suggest that decoded payload should not be trusted and should be treated as user inputs.
2019-11-29 11:55:04 +01:00
Ibrahim P.GandFilip Skokan 9ac3316319 docs: fix tiny style change in readme (#622) 2019-10-21 13:25:55 +02:00
Pedro Luiz Cabral Salomon PradoandFilip Skokan f245a7ee9d style: add missing semicolon (#641) 2019-10-21 13:23:57 +02:00
Eduardo DiazandFilip Skokan d5cb166274 ci: use circleci (#589) 2019-04-12 19:47:26 +02:00
Eduardo Diaz 71e7b43c7d 8.5.1 v8.5.1 2019-03-18 12:25:21 +01:00
Filip SkokanandEduardo Diaz fbab0a0ee9 fix: ensure correct PS signing and verification (#585) 2019-03-18 12:17:04 +01:00
Eduardo DiazandGitHub 96f8fa8e04 README: fix markdown for algorithms table 2019-02-20 15:07:21 +01:00
Eduardo Diaz de0f610512 8.5.0 v8.5.0 2019-02-20 14:06:59 +01:00
Filip SkokanandEduardo Diaz 11a0453c51 feat: add PS JWA support for applicable node versions (#573) 2019-02-20 13:42:37 +01:00
Javier EspinosaandEduardo Diaz 1e880c8c19 Add complete option in jwt.verify (#522)
* Add complete option in verify

* Remove comment

* Update README.md

Co-Authored-By: javespi <[email protected]>

* Move tests in a specific file
2019-02-20 13:32:23 +01:00
Lio李欧andEduardo Diaz f1f30a38a3 Force use_strict during testing (#577)
* Force use_strict during testing

* Add string payload test cases to .iat tests
2019-02-20 13:22:27 +01:00
Mike MacCanaandEduardo Diaz 0d33928084 Fix 'cert' token which isn't a cert (#554)
Certs have pubkeys. We sign things with private keys.
2019-02-13 16:49:01 +01:00
Eduardo DiazandFilip Skokan d00ab1d8e0 ci: remove nsp from tests (#569)
Fixes https://github.com/auth0/node-jsonwebtoken/issues/567
2019-01-23 11:16:28 +01:00
Tim OramandEduardo Diaz 53a76f1ca2 Add tests for private claims in the payload (#555)
This change adds tests for private claims added to the payload during
sign and ensures that after verifying the payload contains the expected
claim.
2018-12-14 15:17:45 +01:00
Tim OramandEduardo Diaz 18945ff721 Refactor tests related to jti and jwtid (#544)
This change extracts all tests related to the jti claim and the jwtid
option into a single test file. Additional tests were added that were
missing.
2018-11-23 12:12:59 +01:00
Eduardo Diaz c4b352c157 8.4.0 2018-11-14 11:29:21 +01:00
kazuki229andEduardo Diaz c7e16cb5d5 Add verify option for nonce validation (#540)
* Add verify option for nonce validation

* Update README.md

Co-Authored-By: kazuki229 <[email protected]>

* Refactor option-nonce test

* Add nonce option validation
2018-11-14 11:02:59 +01:00
gkwangandEduardo Diaz 1ab3963eef devDeps: [email protected] (#539) 2018-11-02 12:00:08 +01:00
RobertandEduardo Diaz 81ed983edd Edited the README.md to make certain parts of the document for the api easier to read, emphasizing the examples. (#548) 2018-11-02 11:25:04 +01:00
Tim OramandEduardo Diaz b280f8cc55 Refactor tests related to kid and keyid (#545)
Thie change extracts the tests related to the kid header and the keyid
option into a single file. Additonal tests were added that were missing.
2018-11-02 11:05:03 +01:00
Tim OramandEduardo Diaz 72223a1f2c Refactor tests related to iss and issuer (#543)
This change extracts all tests related to the iss claim and the issuer
option into a single test file. Additional tests were added that were
missing.
2018-11-02 11:02:16 +01:00
Yash GaurkarandEduardo Diaz 06eb4becd7 Update README.md (#538) 2018-11-01 11:41:54 +01:00
Andrew NesterandEduardo Diaz e1af5cfd31 Fixed error message when empty string passed as expiresIn or notBefore option (#531)
* Fixed error message when empty string passed as expiresIn or notBefore option

* Moved tests to option validation block
2018-10-22 20:40:25 +02:00
Aakash AgarwalandEduardo Diaz 5ba7118db1 Updating Node version in Engines spec in package.json (#528)
* Updating Node version in package.json

Updated Node version from 0.12 to 1.4 in package.json engines

* Updated node version

Updated Node version from 0.12 to 4 in package.json Engines Spec

Fixes Issue #509
2018-10-22 20:30:43 +02:00
Tim OramandEduardo Diaz a4fcadd5b3 Implement async/sync tests for the aud claim (#535)
Refactor existing tests for the aud claim to use the async/sync test
helpers.
2018-10-17 11:37:29 +02:00