Skip to content

Commit

Permalink
badge
Browse files Browse the repository at this point in the history
  • Loading branch information
ghdna committed Feb 7, 2018
1 parent 52165f0 commit 55a6eb1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Code Climate](https://codeclimate.com/github/ghdna/cognito-express/badges/gpa.svg)](https://codeclimate.com/github/ghdna/cognito-express/)
[![Coverage Status](https://coveralls.io/repos/github/ghdna/cognito-express/badge.svg?branch=master)](https://coveralls.io/github/ghdna/cognito-express?branch=master)
[![dependencies Status](https://david-dm.org/ghdna/cognito-express/status.svg)](https://david-dm.org/ghdna/cognito-express)
[![Downloads](https://img.shields.io/npm/dt/cognito-express.svg)](https://www.npmjs.com/package/cognito-express)


## Synopsis
Expand Down
2 changes: 2 additions & 0 deletions lib/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class CognitoExpress {
}

init(callback) {
console.log(`${this.iss}/.well-known/jwks.json`);
return request(`${this.iss}/.well-known/jwks.json`)
.then(response => {
this.pems = {};
Expand Down Expand Up @@ -110,6 +111,7 @@ function jwtVerify(params, callback) {
},
function(err, payload) {
if (err) return callback(err, null);
console.log(payload);
return callback(null, payload);
}
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cognito-express",
"version": "2.0.6",
"version": "2.0.7",
"description": "cognito-express authenticates API requests on a Node-Express application by verifying the signature of AccessToken or IDToken generated by Amazon Cognito.",
"main": "./lib/index.js",
"scripts": {
Expand Down
Empty file added test/app.js
Empty file.

0 comments on commit 55a6eb1

Please sign in to comment.