Get stream key by token

To quote myself

I’m unable to find a fault in yoru code as presented.