Skip to content

Commit

Permalink
Feedback tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
v16Studios committed Jun 17, 2024
1 parent f8347a8 commit 7edaa43
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Services/BeamService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]));
}

/**
Expand Down

0 comments on commit 7edaa43

Please sign in to comment.