If your game is being launched from the Epic Games Store, you should automatically log your player in using the ExchangeCode provided by the launcher. Your game should have the overlay enabled in case Epic Account Services needs to prompt the player. For example, the first time a player plays your…
https://dev.epicgames.com/community/learning/knowledge-base/qzW1O/epic-online-services-what-are-the-guidelines-to-prompt-the-user-to-login-to-their-epic-games-account