Skip to content

Commit 3f29528

Browse files
committed
Clear White Label session token and email in EndSession
1 parent afa248f commit 3f29528

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,13 @@ public static void EndSession(string deviceId, Action<LootLockerSessionResponse>
411411
return;
412412
}
413413

414+
// Clear White Label Login credentials
415+
if (CurrentPlatform == "white_label")
416+
{
417+
PlayerPrefs.DeleteKey("LootLockerWhiteLabelSessionToken");
418+
PlayerPrefs.DeleteKey("LootLockerWhiteLabelSessionEmail");
419+
}
420+
414421
CurrentPlatform = "";
415422
LootLockerSessionRequest sessionRequest = new LootLockerSessionRequest(deviceId);
416423
LootLockerAPIManager.EndSession(sessionRequest, onComplete);

0 commit comments

Comments
 (0)