The users in my game are logged into Playfab via "
LoginWithOpenIdConnect". I'm wanting to work out what a user's PlayerId is in my server code so that I can post statistics etc for that player. How can I best achieve this?
Ah I see I wasn't very clear about that. No, my game has a .net core server behind it, which will communicate with Playfab with the c# sdk.
Answer by Citrus Yan · Apr 06 at 07:01 AM
You can have the player send its SessionTicket returned from LoginWithOpenIdConnect to your .net core server and call Server/AuthenticateSessionTicket to authenticate & retrieve details about the user, then find its PlayerId in AuthenticateSessionTicketResult -> UserInfo -> PlayFabId(the same as PlayerId).
No problem, please let me know if you have any further questions.