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

**URL:** <https://forums.unrealengine.com/t/why-the-epic-online-service-eos-oss-access-token-is-not-refreshed/1412083>\
**Category:** C++\
**Tags:** online-subsystem, onlinesubsystem, unreal-engine, CPP, question\
**Created:** [November 22, 2023, 3:27pm UTC](https://forums.unrealengine.com/t/why-the-epic-online-service-eos-oss-access-token-is-not-refreshed/1412083 "2023-11-22T15:27:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AB\_Jonathan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AB\_Jonathan](https://forums.unrealengine.com/u/AB_Jonathan)\
**Post date:** [November 22, 2023, 3:27pm UTC](https://forums.unrealengine.com/t/why-the-epic-online-service-eos-oss-access-token-is-not-refreshed/1412083/1 "2023-11-22T15:27:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![RikuTheFuffs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RikuTheFuffs](https://forums.unrealengine.com/u/RikuTheFuffs)\
**Post date:** [July 24, 2025, 11:57am UTC](https://forums.unrealengine.com/t/why-the-epic-online-service-eos-oss-access-token-is-not-refreshed/1412083/2 "2025-07-24T11:57:55Z")

</div>

up

---

<div class="post-metadata">

**Author:** ![SebBergy2.0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sebbergy2.0/32/1214708_2.png) [@SebBergy2.0](https://forums.unrealengine.com/u/SebBergy2.0)\
**Post date:** [July 28, 2025, 2:58pm UTC](https://forums.unrealengine.com/t/why-the-epic-online-service-eos-oss-access-token-is-not-refreshed/1412083/3 "2025-07-28T14:58:11Z")

</div>

This is a bug that was fixed here: [https://github.com/EpicGames/UnrealEngine/commit/bc74b7b927285bb03080cf7727fcfc47469fe2a3](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.

---

<div class="post-metadata">

**Author:** ![JediKnightChan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jediknightchan/32/1156960_2.png) [@JediKnightChan](https://forums.unrealengine.com/u/JediKnightChan)\
**Post date:** [February 17, 2026, 12:50am UTC](https://forums.unrealengine.com/t/why-the-epic-online-service-eos-oss-access-token-is-not-refreshed/1412083/4 "2026-02-17T00:50:38Z")

</div>

Be careful with this, I tried to implement code changes from this commit in my 5.1 plugin version and I started to get crashes on dedicated server with an error of NetIds not being of EOS type. NetIds were valid, btw

```auto
[2026.02.16-20.22.33:170][603]LogCore: === Critical error: ===
Unhandled Exception: SIGSEGV: invalid attempt to write memory at address 0x0000000000000003

[2026.02.16-20.22.33:171][603]LogCore: Assertion failed: GetTypeStatic() == NetId.GetType() [File:C:/Users/JediKnight/Documents/Unreal Projects/ECR/Plugins/MyOnlineSubsystemEOS/Source/OnlineSubsystemEOS/Private/OnlineSubsystemEOSTypes.cpp] [Line: 11]

0x000000000bfae850 ECRServer!FOnlineSessionEOS::RegisterPlayers(FName, TArray<TSharedRef<FUniqueNetId const, (ESPMode)1>, TSizedDefaultAllocator<32> > const&, bool) [C:/Users/JediKnight/Documents/Unreal Projects/ECR/Plugins/MyOnlineSubsystemEOS/Source/OnlineSubsystemEOS/Private/OnlineSessionEOS.cpp:3061]
0x000000000bfae3b3 ECRServer!FOnlineSessionEOS::RegisterPlayer(FName, FUniqueNetId const&, bool) [C:/Users/JediKnight/Documents/Unreal Projects/ECR/Plugins/MyOnlineSubsystemEOS/Source/OnlineSubsystemEOS/Private/OnlineSessionEOS.cpp:3043]
0x0000000006596c0e ECRServer!UECRGameInstance::TogglePlayerRegistrationInMatch(FUniqueNetIdRepl, bool) [C:/Users/JediKnight/Documents/Unreal Projects/ECR/Source/ECR/Private/System/ECRGameInstance.cpp:295]

```
