server/auth-server.js
function verifyToken(token) {
    var decodedToken = jwt.decode(token)
    return userdb.users.filter(user => user.name == decodedToken).length > 0;
}
function verifyToken(token) {
    var decodedToken = jwt.decode(token)
    return userdb.users.filter(user => user.name == decodedToken).length > 0;
}
function verifyToken ( token ) { var decodedToken = jwt . decode ( token ) return userdb . users . filter ( user => user . name == decodedToken ) . length > 0 ; }
Verify the token
Verify the token