Skip to content

Commit

Permalink
fixed debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
sahat committed Oct 30, 2015
1 parent bf5573e commit 6a3be61
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/server/node/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,11 @@ function createJWT(user) {
var payload = {
sub: user._id,
iat: moment().unix(),
exp: moment().add(5, 'seconds').unix()
exp: moment().add(14, 'days').unix()
};
console.log(jwt.encode(payload, config.TOKEN_SECRET));
return jwt.encode(payload, config.TOKEN_SECRET);
}

var user = { _id: '1'};
createJWT(user)

/*
|--------------------------------------------------------------------------
| GET /api/me
Expand Down

0 comments on commit 6a3be61

Please sign in to comment.