From 6c5bbac102a89973bb5757d9b35eab38a2191076 Mon Sep 17 00:00:00 2001 From: Omar Bero Date: Wed, 13 Dec 2023 23:56:21 +0200 Subject: [PATCH] fix current device signature --- src/helpers.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/helpers.php b/src/helpers.php index 8170196..1681484 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -1,15 +1,5 @@ isStarted() ? - session()->get('X-DEVICE-SIGNATURE') : - request()->headers->get('X-DEVICE-SIGNATURE'); - } -} - if (!function_exists('getCurrentDeviceSignature')) { function getCurrentDeviceSignature() { @@ -19,6 +9,7 @@ function getCurrentDeviceSignature() request()->headers->get('X-DEVICE-SIGNATURE'), "\s" ); + return !empty($signature) ? $signature : null; } -} \ No newline at end of file +}