diff --git a/src/Services/BeamService.php b/src/Services/BeamService.php index 6138c50..4d94ed1 100644 --- a/src/Services/BeamService.php +++ b/src/Services/BeamService.php @@ -312,15 +312,15 @@ public static function getSingleUseCodeData(string $code): ?object { try { [$claimCode, $beamCode, $nonce] = explode(':', decrypt($code), 3); + + return (object) [ + 'claimCode' => $claimCode, + 'beamCode' => $beamCode, + 'nonce' => $nonce, + ]; } catch (Throwable) { return null; } - - return json_decode(json_encode([ - 'claimCode' => $claimCode, - 'beamCode' => $beamCode, - 'nonce' => $nonce, - ])); } /**