const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); const code = urlParams.get('code')