wpe-cli icon indicating copy to clipboard operation
wpe-cli copied to clipboard

JS to copy Portal Auth values to your clipboard

Open ryanshoover opened this issue 8 years ago • 0 comments

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);

ryanshoover avatar May 16 '17 18:05 ryanshoover