JavaScript Get token da string de consulta
const urlParams = new URLSearchParams(queryString);
Scary Stork
const urlParams = new URLSearchParams(queryString);
const queryString = window.location.search;
console.log(queryString);
// ?product=shirt&color=blue&newuser&size=m