Skip to content

Releases: Zaubrik/djwt

v3.0.2

28 Mar 11:32
Compare
Choose a tag to compare

Bump versions

v3.0.1

05 Nov 02:12
1860a27
Compare
Choose a tag to compare
  • Add optional generic Payload types for verify and decode.
  • Check payload for being an object in create for JS.
  • Update examples.

v3.0.0

19 Oct 05:50
Compare
Choose a tag to compare

Add ignoreExp and ignoreNbf

v2.9.1

11 Jul 22:13
Compare
Choose a tag to compare

Add js bundle

v2.9

18 Jun 13:17
Compare
Choose a tag to compare

Add optional predicates to 'VerifyOptions'

v2.8

14 Nov 04:15
Compare
Choose a tag to compare
  • Add the option audience for identification with the aud claim.
  • Export VerifyOptions.
  • Readability: Create util.ts and replace expressions with predicate functions.

v2.7: Revert to v2.4 except the addition of 'VerifyOptions' (#72)

12 Jun 21:00
f08bb7f
Compare
Choose a tag to compare

Revert to tag v2.4 except for the addition of VerifyOptions.

Reason: The types of Payload and Header are incorrect in the releases v2.5 and v2.6.

v2.6

10 Jun 16:49
e4b7695
Compare
Choose a tag to compare

Don't use: The types are incorrect.

Make verify accept an optional type argument for Payload

const payload = await verify<{foo: string}>(jwt, key); // { foo: "bar" }

v2.5

01 Jun 11:03
Compare
Choose a tag to compare

Don't use: The types are incorrect.

  • Add the type JsonValue and change Payload accordingly
  • Change decode return type to [header: JsonValue, payload: JsonValue, signature: Uint8Array]
  • Add optional VerifyOptions to configure the leeway for exp and nbf

ECDSA

15 Sep 12:02
Compare
Choose a tag to compare

Added algorithms ES256 and ES384