The iframe may send messages back to your application. For instance, it might send an TOKEN_REFRESH event if the token expires. Here's how you can listen for messages from the iframe:
Passing the Token via Query Parameter
You can also pass the token to the iframe by including it as a query parameter in the iframe's URL.
You can open order page and customer page with:
Please change https://embed.yofi.ai to https://embed.botnot.ioif you want to use this in production env.
Key Notes
Ensure the iframe source (src) and origin (urlOrigin) are correctly set to match your environment.
Always verify the origin of incoming messages to prevent security vulnerabilities.
Use the provided event types and data structures to communicate effectively with the iframe.