Skip to content

Add StartSessionManual to LootLockerSDKManager#470

Merged
kirre-bylund merged 2 commits into
devfrom
feature/1179-add-start-session-manual
May 29, 2026
Merged

Add StartSessionManual to LootLockerSDKManager#470
kirre-bylund merged 2 commits into
devfrom
feature/1179-add-start-session-manual

Conversation

@kirre-bylund

Copy link
Copy Markdown
Contributor

Summary

Adds StartSessionManual(LootLockerPlayerData playerData) to LootLockerSDKManager, allowing developers to inject externally sourced player state (e.g. after a server token exchange) without performing an authentication API call.

Closes lootlocker/index#1179

Changes

  • Runtime/Game/LootLockerSDKManager.cs — new public static bool StartSessionManual(LootLockerPlayerData playerData) method in #region Authentication

Behaviour

  • Validates that playerData is non-null and has a non-empty SessionToken and ULID; logs a warning and returns false if not
  • On success, calls LootLockerEventSystem.TriggerSessionStarted(playerData) — the same pipeline used by all other auth methods — which persists state to memory and PlayerPrefs and notifies any registered listeners
  • Returns true on success

Testing

Local compile check: ✅ PASSED

@JohannesLoot JohannesLoot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new public authentication entry point, StartSessionManual(LootLockerPlayerData playerData), to allow callers to inject externally sourced player session state into the SDK without making an authentication API call.

Changes:

  • Added LootLockerSDKManager.StartSessionManual(LootLockerPlayerData playerData) in #region Authentication.
  • Validates playerData, SessionToken, and ULID, then triggers the existing session-started event pipeline.

Comment thread Runtime/Game/LootLockerSDKManager.cs
Comment thread Runtime/Game/LootLockerSDKManager.cs
Comment thread Runtime/Game/LootLockerSDKManager.cs
@kirre-bylund kirre-bylund merged commit 024ea8e into dev May 29, 2026
56 checks passed
@kirre-bylund kirre-bylund deleted the feature/1179-add-start-session-manual branch May 29, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants