Skip to content

Commit afd9cc2

Browse files
committed
CHANGELOG and README updated
1 parent 5fda1a2 commit afd9cc2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## 2.0.0 2017.08.09
7+
8+
- Complete reimplementation in TypeScript
9+
610
## 1.0.1 - 2017-04-25
711

812
- Fixes #1 (extractKeyId is rejected with SyntaxError if the JWT header is not JSON)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function privkeyResolver (keyId) {
3030
return {key, passphrase, alg}
3131
}
3232

33-
const jwtHandler = jwt.Handler('myproject', pubkeyResolver, privkeyResolver)
33+
const jwtHandler = new jwt.JwtHandler('myproject', pubkeyResolver, privkeyResolver)
3434

3535
// Verifying JWT tokens
3636
jwtHandler.verify(jwtRaw)

0 commit comments

Comments
 (0)