Why the Epic Online Service (EOS) OSS access token is not refreshed?

I found an occurence where the EOS OSS’ IdentityInterface does not return a correct access token (expired).

  • I used (IdentityInterface->GetAuthToken(...)) to get the token.
  • I created a scheduler run each minute to obtain the token and detect whether there is a change or not.
  • The access token expiration is 2 hour. But at the end of the 2nd hour, the scheduler didn’t detect any change of access token.
  • But, at 3rd hour, the scheduler detected a change of access token which is a new token that was refreshed at 2nd hour.

Is this a bug from EOS OSS or EOS SDK?
Any workaround to ensure the GetAuthToken() can obtain an actual token correctly?

Thanks.

1 Like

up

This is a bug that was fixed here: https://github.com/EpicGames/UnrealEngine/commit/bc74b7b927285bb03080cf7727fcfc47469fe2a3

A good approach if you want to see if an issue is fixed in later versions of UE is to:

  1. Navigate to the API with an issue. Make sure you are in the ue5-main branch.
  2. Check the Git Blame (you can toggle from code to blame at the top of the code in GitHub)
  3. If there is a change after the version you currently have, look at the change to see what the fix was and in what version.