271 Commits
Author SHA1 Message Date
José F. Romaniello c318b63c53 7.1.3 v7.1.3 2016-07-12 10:07:51 -03:00
José F. Romaniello 076991f7e1 7.1.2 v7.1.2 2016-07-12 10:06:27 -03:00
José F. Romaniello 084f537d3d do not stringify the payload when signing async - closes #224 2016-07-12 10:06:23 -03:00
José F. Romaniello 7a180a6684 update changelog 2016-07-12 09:59:10 -03:00
José F. Romaniello 9bd08bc51e 7.1.1 v7.1.1 2016-07-12 09:58:40 -03:00
José F. Romaniello 63263a28a2 do not mutate options in jwt.verify, closes #227 2016-07-12 09:52:32 -03:00
José F. Romaniello e11d505207 refactor into multiple files 2016-07-12 09:49:04 -03:00
José F. Romaniello a32214df81 update changelog 2016-07-12 09:39:18 -03:00
José F. Romaniello 4e1e5810aa 7.1.0 v7.1.0 2016-07-12 09:38:43 -03:00
José F. Romaniello df601b0565 Merge branch 'lusarz-issue_217' 2016-07-12 09:37:00 -03:00
José F. RomanielloandGitHub 164fdc1eaa Merge pull request #202 from a0viedo/patch-1
add dependencies badge on readme
2016-07-12 09:34:20 -03:00
José F. RomanielloandGitHub 0cb870285e Merge pull request #215 from ConnorMcF/patch-1
Fixed broken link
2016-07-12 09:33:29 -03:00
lusarz 757a16e0e3 Exp calculated based on iat. fix #217 2016-06-22 10:42:23 +02:00
José F. Romaniello 2a91a0235d 7.0.1 v7.0.1 2016-06-14 14:43:55 -03:00
José F. Romaniello f7d89ff39b fix doc issue - closes #213 2016-06-14 14:43:39 -03:00
Connor McFarlaneandGitHub 4e69b312fb Fixed broken link
Link was going relative to the repo instead of to the external domain.
2016-06-12 14:49:34 +01:00
José F. Romaniello 78bf0083df update changelog 2016-05-19 12:48:34 -03:00
José F. Romaniello a79ac9add3 7.0.0 v7.0.0 2016-05-19 12:47:46 -03:00
José F. Romaniello 1e46c5a42a change jwt.sign to return errors on callback instead of throwing errors 2016-05-19 12:47:24 -03:00
Alejandro Oviedo 659b39950a add dependencies badge on readme
change build badge to link to master branch and changed it to svg (nicer on retina)
2016-05-17 11:18:32 -03:00
José F. Romaniello 65aadb421d update CHANGELOG - closes #198 2016-05-03 09:50:06 -03:00
José F. Romaniello 31625b5c01 6.2.0 v6.2.0 2016-04-29 11:31:38 -03:00
José F. Romaniello 64f0e0a382 Merge branch 'jacopofar-origin/clock_skew_tolerance' 2016-04-29 11:30:49 -03:00
José F. Romaniello 65ddea934f Merge branch 'origin/clock_skew_tolerance' of https://github.com/jacopofar/node-jsonwebtoken into jacopofar-origin/clock_skew_tolerance 2016-04-29 11:30:21 -03:00
José F. Romaniello d78659fe58 6.1.2 v6.1.2 2016-04-29 08:57:09 -03:00
José F. Romaniello 9c38374142 fix sign method for node.js 0.12. closes #193 2016-04-29 08:57:06 -03:00
José F. Romaniello 7b0981380d improve async test 2016-04-29 08:54:48 -03:00
José F. Romaniello 252110e410 6.1.1 v6.1.1 2016-04-28 19:55:10 -03:00
José F. Romaniello b51e31f477 include standard claims from payload. closes #196 2016-04-28 19:55:05 -03:00
José F. Romaniello d805573d5c update travis.yml 2016-04-27 13:39:33 -03:00
José F. Romaniello 05336fda5e Merge pull request #177 from risseraka/patch-1
fix duplicate subject in README's options list
2016-04-27 13:26:12 -03:00
José F. Romaniello 805580a4db update changelog 2016-04-27 13:25:44 -03:00
José F. Romaniello 75c50a2414 6.1.0 v6.1.0 2016-04-27 13:23:24 -03:00
José F. Romaniello ec880791c1 Merge branch 'jonekdahl-verify-unsigned-tokens' 2016-04-27 13:22:14 -03:00
José F. Romaniello 7b0ba50bb9 Merge branch 'verify-unsigned-tokens' of https://github.com/jonekdahl/node-jsonwebtoken into jonekdahl-verify-unsigned-tokens 2016-04-27 13:22:07 -03:00
José F. Romaniello afb3285c8b update changelog 2016-04-27 12:51:36 -03:00
José F. Romaniello 2736ac2654 6.0.1 v6.0.1 2016-04-27 12:50:10 -03:00
José F. Romaniello 304f1b3307 throw error on invalid options when the payload is not an object 2016-04-27 12:49:54 -03:00
José F. Romaniello 5835f552e2 update changelog 2016-04-27 12:44:43 -03:00
José F. Romaniello fc5cf65493 6.0.0 v6.0.0 2016-04-27 12:40:55 -03:00
José F. Romaniello 53c3987b3c Improved the sign method
Notable changes:

1.  `expiresInMinutes` and `expiresInSeconds` are deprecated and no longer supported.
2.  `notBeforeInMinutes` and `notBeforeInSeconds` are deprecated and no longer supported.
3.  options are properly validated.
4.  `options.expiresIn`, `options.notBefore`, `options.audience`, `options.issuer`, `options.subject` and `options.jwtid` are mutually exclusive with `payload.exp`, `payload.nbf`, `payload.aud`, `payload.iss`, `payload.sub` and `payload.jti` respectively.
5.  `options.algorithm` is properly validated.
6.  `options.headers` is renamed to `options.header`.
2016-04-27 12:40:28 -03:00
José F. Romaniello e32043b8e9 make payload.exp and options.expiresIn exclusive 2016-04-27 11:43:22 -03:00
José F. Romaniello 53a88ecf44 update readme 2016-04-27 11:36:40 -03:00
José F. Romaniello 3898d3f398 Merge branch 'popomore-standard-callback' 2016-04-27 11:34:59 -03:00
popomore 50873c7d45 feat: change .sign to standard async callback
- subscribe error event
- change the first argument of the callback as error
2016-04-27 17:24:51 +08:00
Jon Ekdahl 0f193887d3 Fix verification of unsigned tokens (fix #185) 2016-04-12 21:38:43 +02:00
Jacopo ac7e6a6a4a use the same timestamp in sync and async 2016-03-25 22:35:53 +01:00
jacopo_farina 08a5ff5836 add test for clockTolerance 2016-03-25 00:39:03 +01:00
Jacopo 58c865d832 maxAge is in milliseconds, not seconds 2016-03-25 00:38:17 +01:00
Jacopo 26e91cb17f clockTolerance for maxAge too 2016-03-25 00:35:58 +01:00