JS Obtener el parámetro URL
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const code = urlParams.get('code')
Awful Anaconda