Iframe embedding
<iframe
title="The Brief"
src="https://app-proxy.thebrief.ai/tokenAuth?token=<token>"
style="width: 100%; border: none; min-height: 800px"
>
</iframe>
window.addEventListener("message", (event) => {
// Optionally, check the origin of the message for security purposes
if (event.origin !== "https://app-proxy.thebrief.ai") return;
// Handle the message
console.log("Message received from iframe:", event.data);
});
{
"type": "sessionStarted",
"sessionId": "xxx", // id of the session that just started
"initToken": "<token>" // the JWT sent to authenticate the current session /token-auth/{token}
} Last updated

