Issue with social login modal (new user) when /login is opened programmatically in an iframe

How have you implemented this? It sounds like some cookies/session are being lost somewhere.

In general we do not support using Discourse in an iFrame. As you’ve found, there are weird quirks which can cause issues.