How to use Discourse user session info in iframe?

What is the best and safest way to send Discourse user session info (username f.e.) to iframe?
I have a small app that I use in posts as iframe. I want to control who is accessing it.

Thanks!

Does this help?

2 Likes

Thank you @Mark_Schmucker ! Fantastic.
Sounds exactly how I need it.