From 2a2be1a5a123f0d3204b9e8cf973636f049acb8e Mon Sep 17 00:00:00 2001 From: Nadil Karunarathna Date: Thu, 3 Sep 2026 00:30:44 +0530 Subject: [PATCH 1/2] update GetMeResponse --- bundle/src/Comms/Event/ToCore/User/GetMeResponse.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bundle/src/Comms/Event/ToCore/User/GetMeResponse.php b/bundle/src/Comms/Event/ToCore/User/GetMeResponse.php index 17ec631..be29421 100644 --- a/bundle/src/Comms/Event/ToCore/User/GetMeResponse.php +++ b/bundle/src/Comms/Event/ToCore/User/GetMeResponse.php @@ -10,6 +10,8 @@ public function __construct( private ?AuthUser $user = null, private ?AuthUserOrganization $organization = null, + // session ID from HYVOR (used for audits mostly) + private ?int $sessionId = null, ) {} public function getUser(): ?AuthUser @@ -22,4 +24,8 @@ public function getOrganization(): ?AuthUserOrganization return $this->organization; } + public function getSessionId(): ?int + { + return $this->sessionId; + } } From 1bf0fbd016cc786d2996dda7920c8180bba28263 Mon Sep 17 00:00:00 2001 From: Nadil Karunarathna Date: Thu, 3 Sep 2026 00:31:01 +0530 Subject: [PATCH 2/2] Auth updates --- src/Auth/Auth.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Auth/Auth.php b/src/Auth/Auth.php index d318c7b..8ada5b0 100644 --- a/src/Auth/Auth.php +++ b/src/Auth/Auth.php @@ -47,7 +47,11 @@ public function me(Request $request): ?Me return null; } - return new Me($user, $response->getOrganization()); + return new Me( + $user, + $response->getOrganization(), + $response->getSessionId(), + ); } /**