Skip to content

Commit

Permalink
upd ResponseHandler.php
Browse files Browse the repository at this point in the history
fix for EncryptSign
  • Loading branch information
damikael committed Dec 4, 2023
1 parent b45f330 commit 7f3fa45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ResponseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected function makeJWS($payload, $exp_time, $iss, $aud, $jwk_pem): string {
'data' => $payload, // Authentication Data
];

if(array_key_exists('fiscalNumber', $payload)) { // Subject - fiscalNumber, only if exists
if(is_array($payload) && array_key_exists('fiscalNumber', $payload)) { // Subject - fiscalNumber, only if exists
$data['sub'] = $payload['fiscalNumber'];
}

Expand All @@ -119,4 +119,4 @@ protected function makeJWS($payload, $exp_time, $iss, $aud, $jwk_pem): string {

return $token;
}
}
}

0 comments on commit 7f3fa45

Please sign in to comment.