robtweed/qewd

unused function

killmenot opened this issue · 2 comments

qewd/lib/jwtHandler.js

Lines 433 to 440 in 736580d

function isTokenAPossibleJWT(token) {
var pieces = token.split('.');
if (pieces.length !== 3) return false;
if (pieces[0].length < 2) return false;
if (pieces[1].length < 2) return false;
if (pieces[2].length < 2) return false;
return true;
}

You are correct. However I'd like it left in the module as it might become useful in future

OK, covered with tests also