JS получить параметр URL -адреса
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const code = urlParams.get('code')
Awful Anaconda