Skip to content

Commit

Permalink
Merge branch 'master' into clean-up-jscs-in-tests-api-v1-subjects
Browse files Browse the repository at this point in the history
  • Loading branch information
iamigo committed Dec 29, 2016
2 parents 7b54390 + 9b0547d commit 13757f4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions utils/jwtUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function getUsernameFromToken(req) {
if (err !== null) {
reject(err);
}

const username = decodedData.username;
resolve(username);
});
Expand All @@ -92,8 +93,10 @@ function getUsernameFromToken(req) {
} // getUsernameFromToken

/**
* Create jwt token
* @param {object} user - user object
* Create jwt token.
*
* @param {string} tokenName - the name of the token
* @param {string} userName - the name of the user
* @returns {string} created token
*/
function createToken(tokenName, userName) {
Expand Down

0 comments on commit 13757f4

Please sign in to comment.