For security reasons, auto-login can only be used once every 6 minutes. This causes some embedded H5P to display an authentication screen instead of the H5P content.
If the embedded content happens to be big enough, this is not a problem. But sometimes the embedding area is too small and this causes a bad user experience (see attached screenshot).
Keeping this in mind, a better approach would be to have a message explaining the situation and a button that would open a dedicated login screen. I'm not sure about the technical details on how this should happen (if we need to open the browser, increase the iframe size, etc.). But the experience can be improved.