INNER CODE UNIT · JavaScript
timeAgo
DinoChiesa/jwt-webtool · src/js/app.js:164
function timeAgo(time) {
return new TimeAgo("en-US").format(time);
}
function formatTimeString(time) {
return time.toISOString().replace(".000Z", "Z");
}
function hmacToKeyBits(alg) {
switch (alg) {
case "HS256":
return 256;
case "HS384":
return 384;
case "HS512":
return 512;
}
return 9999999;