Skip to content

Commit

Permalink
Added sign and verify methods, updated README, bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
stiang committed Mar 18, 2014
1 parent ce38e76 commit ece86e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ app.use(jwt({ secret: publicKey }));
- [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) — JSON Web Token signing
and verification

Note that koa-jwt exports the `sign` and `verify` functions from the above module as a convenience.

## Tests

$ npm install
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@ module.exports = function(opts) {
};

module.exports.sign = JWT.sign;

module.exports.verify = JWT.verify;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "koa-jwt",
"version": "0.0.2",
"version": "0.0.3",
"description": "Koa JWT authentication middleware.",
"keywords": [
"auth",
Expand Down

0 comments on commit ece86e7

Please sign in to comment.