function random() {
return Math.random().toString(9).substr(2); // Eliminar `0.`
};
function token() {
return random() + random(); // Para hacer el token más largo
};
alert(token());
function random() {
return Math.random().toString(9).substr(2); // Eliminar `0.`
};
function token() {
return random() + random(); // Para hacer el token más largo
};
alert(token());