com.beamable 0.0.0-PREVIEW.NIGHTLY-202512092100 → 0.0.0-PREVIEW.NIGHTLY-202601071303
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.attestation.p7m +0 -0
- package/CHANGELOG.md +3 -0
- package/Runtime/BeamContext.cs +5 -5
- package/Runtime/Core/Platform/SDK/PlatformRequester.cs +7 -3
- package/Runtime/Core/Platform/SDK/PlatformRequesterInterfaces.cs +1 -1
- package/Runtime/Environment/Resources/env-default.json +1 -1
- package/Tests/Runtime/Beamable/Platform/MockPlatformAPI.cs +1 -1
- package/package.json +1 -1
package/.attestation.p7m
ADDED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
13
13
|
### Changed
|
|
14
14
|
- Update CLI to 7.0.0
|
|
15
15
|
|
|
16
|
+
### Fixed
|
|
17
|
+
- Sudden account switching no longer accidentally happens when unpredictable errors happen during account switching [4321](https://github.com/beamable/BeamableProduct/issues/4321)
|
|
18
|
+
|
|
16
19
|
## [4.0.2] - 2025-11-20
|
|
17
20
|
### Changed
|
|
18
21
|
- Update CLI to 6.2.1, to fix content serialization issue
|
package/Runtime/BeamContext.cs
CHANGED
|
@@ -549,7 +549,7 @@ namespace Beamable
|
|
|
549
549
|
var oldToken = _requester.Token;
|
|
550
550
|
await _beamableApiRequester.RefreshToken();
|
|
551
551
|
var token = _beamableApiRequester.Token;
|
|
552
|
-
ClearToken();
|
|
552
|
+
ClearToken(eraseFromDisk: false);
|
|
553
553
|
_requester.Token = token;
|
|
554
554
|
_beamableApiRequester.Token = token;
|
|
555
555
|
var settings = _serviceScope.GetService<ITokenEventSettings>();
|
|
@@ -568,8 +568,8 @@ namespace Beamable
|
|
|
568
568
|
|
|
569
569
|
private async Promise SaveToken(TokenResponse rsp)
|
|
570
570
|
{
|
|
571
|
-
ClearToken();
|
|
572
571
|
var oldToken = _requester.Token;
|
|
572
|
+
ClearToken(eraseFromDisk: false);
|
|
573
573
|
var token = new AccessToken(_tokenStorage,
|
|
574
574
|
Cid,
|
|
575
575
|
Pid,
|
|
@@ -594,9 +594,9 @@ namespace Beamable
|
|
|
594
594
|
await _requester.Token.Save();
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
-
private void ClearToken()
|
|
597
|
+
private void ClearToken(bool eraseFromDisk=true)
|
|
598
598
|
{
|
|
599
|
-
_requester.DeleteToken();
|
|
599
|
+
_requester.DeleteToken(eraseFromDisk);
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
private async Promise InitStep_StartPubnub()
|
|
@@ -960,7 +960,7 @@ namespace Beamable
|
|
|
960
960
|
/// </summary>
|
|
961
961
|
public async Promise ClearPlayerAndStop()
|
|
962
962
|
{
|
|
963
|
-
ClearToken();
|
|
963
|
+
ClearToken(eraseFromDisk: true);
|
|
964
964
|
await Stop();
|
|
965
965
|
}
|
|
966
966
|
|
|
@@ -282,10 +282,14 @@ namespace Beamable.Api
|
|
|
282
282
|
return UnityWebRequest.EscapeURL(url);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
public void DeleteToken()
|
|
285
|
+
public void DeleteToken(bool eraseFromDisk=true)
|
|
286
286
|
{
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
if (eraseFromDisk)
|
|
288
|
+
{
|
|
289
|
+
Token?.Delete();
|
|
290
|
+
Token?.DeleteAsCustomerScoped();
|
|
291
|
+
}
|
|
292
|
+
|
|
289
293
|
Token = null;
|
|
290
294
|
}
|
|
291
295
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "com.beamable",
|
|
3
|
-
"version": "0.0.0-PREVIEW.NIGHTLY-
|
|
3
|
+
"version": "0.0.0-PREVIEW.NIGHTLY-202601071303",
|
|
4
4
|
"displayName": "Beamable",
|
|
5
5
|
"description": "A better way to build games in Unity\n\nWe provide an SDK that enables game makers to easily add social, commerce and content management features to their games with drag-and-drop prefabs inside Unity.",
|
|
6
6
|
"unity": "2019.4",
|