I'm not sure if I should check every time before an API is called in the client code if the current session ticket is still valid or if I should just call the desired API and then return "Not Authenticated" if the current session ticket is no more valid. When it returns "Not Authenticated", then I would call PlayFabClientAPI.LoginWithIOSDeviceID or PlayFabClientAPI.LoginWithAndroidDeviceID and after that I would call the desired API again.
Is it possible to find out somehow in the client if the current session ticket is still valid before I would call the desired API? Should I always check the current session ticket before I call the desired API?
Or is it better to call the desired API immediately without checking the current session ticket? In this case I would only execute additional code if the session ticket is no more valid.
In addition, what happens if the player uses two devices in my game? For example, the player plays on device 1, then 2 hours later he plays with the same account on device 2. 4 hours later, the player plays my game again on device 1.
What happens when the player wants to play again on his device 1? Is the current session ticket from device 1 still valid or is it no more valid because the player has used device 2 before playing again on device 1?