var result = [];
var current;
while (!(current = it.next()).done) {
result.push([current.value[1], characters[i]]);
i++;
}
// TODO Test utf8ToUint8Array function
var messageAsUint8Array = utf8ToUint8Array(partialToken);
This block of code in the signJWT function does nothing with the result that it iterates over. I was also not able to get a JWT with a verifiable signature but wanted to mainly point out that the above code seems useless