Commit graph

21 commits

Author SHA1 Message Date
Filip Skokan
a13eb045d8
feat: improve key input type errors, remove dependency on @types/node 2021-10-06 11:57:48 +02:00
Filip Skokan
49fb62cb96
feat: return resolved key when verify and decrypt resolve functions are used 2021-09-25 22:27:28 +02:00
Filip Skokan
82fa773d6e refactor: runtime import reorder, node predicates 2021-09-09 21:06:28 +02:00
Filip Skokan
5c7d2656b6 feat: experimental Deno build & publish 2021-08-20 12:01:17 +02:00
Filip Skokan
e68e0bafc5 docs: update internal doc refs 2021-08-13 12:42:32 +02:00
Filip Skokan
e091f0f245 fix(typescript): remove file extensions from .d.ts files
resolves #222
2021-07-02 15:46:54 +02:00
Filip Skokan
e7f8b93092 refactor: more guard of SignJWT.prototype.sign() 2021-07-01 09:54:14 +02:00
Filip Skokan
4103719c24 fix: guard SignJWT.prototype.sign() from missing protected header
fixes #221
2021-07-01 09:50:48 +02:00
Cody Ebberson
13fa3d8ae0 feat(typescript): export consume module interface types (#213)
Co-authored-by: Filip Skokan <panva.ip@gmail.com>
2021-06-22 11:21:21 +02:00
Filip Skokan
8282c28bf1 docs: add note about createRemoteJWKSet to get key interfaces 2021-04-01 17:36:17 +02:00
Filip Skokan
e41c1bdade docs: remove jwk/parse from examples 2021-03-31 11:17:13 +02:00
Filip Skokan
49ba5616d7 docs: update example labels 2021-03-31 10:55:55 +02:00
Filip Skokan
5cba6b0fdd feat: add named exports for all modules 2021-03-15 15:47:42 +01:00
Filip Skokan
28d50d09aa docs: add markdown code block langauge 2021-03-12 15:30:13 +01:00
Filip Skokan
71d35a7d0e docs: update unsecured jwt docs 2020-12-29 10:27:29 +01:00
Filip Skokan
5163116ca1 feat: support recognizing proprietary crit header parameters
closes #123
2020-12-06 17:54:38 +01:00
Filip Skokan
691b44ad47 fix: reject JWTs with b64: false
As per https://tools.ietf.org/html/rfc7797 abstract

This specification updates RFC 7519 by stating that JSON Web Tokens
(JWTs) MUST NOT use the unencoded payload option defined by this
specification.
2020-12-06 17:54:32 +01:00
Filip Skokan
29373633bc fix(typescript): refactored how types are published
resolves #119
2020-11-26 18:53:01 +01:00
Filip Skokan
ce521d567b refactor: less for in, added type checks, error messages 2020-11-22 12:44:27 +01:00
Filip Skokan
e39c3dba75 feat: allow compact verify/decrypt tokens to be uint8array encoded
This means that when Nested JWT is used the decrypted plaintext can
be piped directly to verify.
2020-11-22 12:44:27 +01:00
Filip Skokan
357fe0b964 feat: Revised API, No dependencies, Browser Support, Promises
BREAKING CHANGE: Revised, Promise-based API
BREAKING CHANGE: No dependencies
BREAKING CHANGE: Browser support (using [Web Cryptography API](https://www.w3.org/TR/WebCryptoAPI/))
BREAKING CHANGE: Support for verification using a remote JWKS endpoint
BREAKING CHANGE: Experimental Node.js libuv thread pool based runtime (non-blocking 🎉)
2020-11-14 18:26:46 +01:00