wpe-cli
wpe-cli copied to clipboard
JS to copy Portal Auth values to your clipboard
If you run this from Chrome's console, you'll get the token and ar_v4 values. You still don't get the session_id value. Is there a way to get that?
var s="# Settings for the wpe-cli integration\nwpe-cli:\n\ttoken: "+/<meta\s+name="csrf-token"\s+content="([^"]+)"\s*\/?>/ig.exec( document.head.innerHTML )[1]+"\n\tar_v4: "+/__ar_v4=([^;]+);/ig.exec( document.cookie )[1];copy(s);console.log(s);