.then(resp => { window.location.replace ( `https://www.llave.cdmx.gob.mx/oauth.xhtml?client_id=202112281143197289&redirect_url=https://registros.fondeso.cdmx.gob.mx/validacion&state=${resp.rs}`); return resp.rs; // Conserva la respuesta para usarla en el siguiente then })
.then(resp => { window.location.replace ( `https://www.llave.cdmx.gob.mx/oauth.xhtml?client_id=202112281143197289&redirect_url=https://registros.fondeso.cdmx.gob.mx/validacion&state=${resp.rs}`); return resp.rs; // Conserva la respuesta para usarla en el siguiente then })