Getting peer's public key on libp2p

I鈥檓 using libp2p with SECIO in the browser and successfully getting connections and dialing to other peers. However, libp2p doesn鈥檛 expose these peers pubKey to my application, even though it has already gotten access to it in the SECIO connection negotiation.

I believe the problem is that at his .setInnerConn call is ignoring the peer data it could be using and just setting the raw connection on test: check if we dialed to the right peer 路 libp2p/js-libp2p-secio@74f6fd8 路 GitHub.

What am I missing here?