Skip to content

Commit bc5068e

Browse files
committed
Removed token refresh from steam connections
1 parent c4d2ba6 commit bc5068e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Assets/LootLocker/Game/GameServerAPI.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ public static void Init(ServerManager serverManager)
2626

2727
protected override void RefreshTokenAndCompleteCall(ServerRequest cacheServerRequest, Action<LootLockerResponse> OnServerResponse)
2828
{
29+
if (activeConfig != null && activeConfig.platform == LootLockerGenericConfig.platformType.Steam)
30+
{
31+
Debug.LogError("Token has expired, And token refresh not supported in Steam calls");
32+
LootLockerResponse res = new LootLockerResponse();
33+
res.statusCode = 401;
34+
res.Error = "Token Expired";
35+
res.hasError = true;
36+
OnServerResponse?.Invoke(res);
37+
return;
38+
}
39+
2940
var sessionRequest = new SessionRequest(activeConfig.deviceID);
3041

3142
LootLockerAPIManager.Session(sessionRequest, (response) =>

0 commit comments

Comments
 (0)