Knowledge Base: Why is EOS P2P APIs returning EOS_InvalidAuth?

EOS_InvalidAuth is returned when the local user is not logged into EOS Game Service. Your game should not call EOS P2P APIs if the user is not logged into EOS Game Services. If you are using our SocketSubsystemEOS plugin in UE, we had a bug that has been fixed here.

https://dev.epicgames.com/community/learning/knowledge-base/Gx2EV/epic-online-services-why-is-eos-p2p-apis-returning-eos_invalidauth