function shortJWT(token) {
    var short = "";
    if (token) {
        var printChars = 6; // how many chars to print from the end of the JWT
        if (token.length > printChars)
            token = "..." + token.substr(token.length - printChars);
        short = token;
    }
    return short;
}
// shortens a client's JWT to prevent logging sensitive information
shortens a client's JWT to prevent logging sensitive information
shortens a client ' s JWT to prevent logging sensitive information
function shortJWT(token) {
    var short = "";
    if (token) {
        var printChars = 6; 
        if (token.length > printChars)
            token = "..." + token.substr(token.length - printChars);
        short = token;
    }
    return short;
}
function shortJWT ( token ) { var short = "" ; if ( token ) { var printChars = 6 ; if ( token . length > printChars ) token = "..." + token . substr ( token . length - printChars ) ; short = token ; } return short ; }
shortens a client's JWT to prevent logging sensitive information
shortens a client ' s JWT to prevent logging sensitive information
// how many chars to print from the end of the JWT