Skip to content

Commit bf061fb

Browse files
committed
Some fixes after sdk testings
1 parent eb6ccb1 commit bf061fb

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/EventManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public function buildEvent(EventOptions $opts)
2727
$clientFP = json_decode($cookieDecoded);
2828
$eventType = $opts->eventType ? $opts->eventType : EventTypes::LOG_IN;
2929

30-
$cid = $clientFP['cid'] ? $clientFP['cid'] : '';
30+
$cid = $clientFP->cid ? $clientFP->cid : '';
3131
$vid = Utils::generateGuidV4();
32-
$fp = $clientFP['fp'] ? $clientFP['fp'] : '';
32+
$fp = $clientFP->fp ? $clientFP->fp : '';
3333
$ip = $opts->ip ? $opts->ip : Utils::clientIpFromRequest();
3434
$remoteIP = $opts->remoteIp ? $opts->remoteIp : Utils::clientIpFromRequest();
3535
$userAgent = $opts->userAgent ? $opts->userAgent : Utils::userAgentFromRequest();

src/Middleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace SecureNative\sdk;
44

5-
const SIGNATURE_KEY = 'HTTTP_X_SECURENATIVE';
5+
const SIGNATURE_KEY = 'HTTP_X_SECURENATIVE';
66

77
class Middleware
88
{

src/Models/EventOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class EventOptions
2323
public $remoteIp;
2424
public $user;
2525
public $device;
26-
public $params = array();
26+
public $params = null;
2727

2828
public function __construct($json = false)
2929
{

0 commit comments

Comments
 (0)