If it is the code you want to extract from the url you can do it like this.
const returnUrl = 'http://localhost:3000/****/******?code=AQDrfYDvQdrWxd*************nI6QfJrZqDBW-diVXr0vSWr7eDNyJ6axCPx_gYubndupibMHiI0gVnPT8I4cfun240_01DzweTsq7F7Hk7d1Vnrfl4F4YREjOAt8LZmk83EHKexsLQrs2QbbIki6u51m90tGbo_WzxUg5Q#_=_';
const url = new URL(returnUrl);
const code = url.searchParams.get('code');
console.log(code);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…