What id token should I use for verifying player - id token obtained from auth interface or id token obtained from connect interface?

Hello,

We are porting our game to Epic Games Store.

We are using both Auth Interface (for authenticate player using exchange code) and then Connect Interface for logging in user (for obtaining Product user id to use with Achievements Interface later).

We want to verify user on our server.

We want to use ide token verification for that.

What id token should we use for verifying user - token obtained from Auth interface CopyIdToken, or token obtained from Connect interface’s CopyIdToken?

Hello! Which ID you’d like to use largely depends on preference and the purpose of the integration.

EOS_Auth_CopyIdToken will give you an ID token that identifies the Epic account. This can be useful if your backend only works with Epic users, if you want to work with Ecom data, which is associated with Epic accounts on our backend, or if you want to create your own friends system.

https://dev.epicgames.com/docs/epic-account-services/auth/auth-interface\#user-verification-using-an-id-token

EOS_Connect_CopyIdToken, on the other hand, verifies the identity of an EOS Product User. This is the identity-provider agnostic user reference against which EOS Game Services store all progression (e.g., stats, achievements, leaderboards, sanctions) and data (e.g., Player Data Storage).

If your backend wants to be able to reference the same individual across platforms, then this is what you would want to use instead.

https://dev.epicgames.com/docs/game-services/eos-connect-interface\#user-verification-using-an-id-token