diff --git a/Resources/config/web_token_issuance.xml b/Resources/config/web_token_issuance.xml
index e2b42afb..f4b260b7 100644
--- a/Resources/config/web_token_issuance.xml
+++ b/Resources/config/web_token_issuance.xml
@@ -11,9 +11,9 @@
-
-
-
+ null
+ null
+ null
diff --git a/Resources/config/web_token_verification.xml b/Resources/config/web_token_verification.xml
index a84ad5b9..12781614 100644
--- a/Resources/config/web_token_verification.xml
+++ b/Resources/config/web_token_verification.xml
@@ -10,15 +10,15 @@
-
-
+
+
-
+ false
-
+ null
%lexik_jwt_authentication.clock_skew%
diff --git a/Services/WebToken/AccessTokenLoader.php b/Services/WebToken/AccessTokenLoader.php
index 8b48a5d8..ce90aaa5 100644
--- a/Services/WebToken/AccessTokenLoader.php
+++ b/Services/WebToken/AccessTokenLoader.php
@@ -46,7 +46,7 @@ public function __construct(
?string $encryptionKeyset
) {
$this->jwsLoader = $jwsLoaderFactory->create(['jws_compact'], $signatureAlgorithms, $jwsHeaderChecker);
- if ($jweLoaderFactory !== null && $keyEncryptionAlgorithms !== null && $contentEncryptionAlgorithms !== null && $jweHeaderChecker !== null) {
+ if ($jweLoaderFactory !== null && !empty($keyEncryptionAlgorithms) && !empty($contentEncryptionAlgorithms) && !empty($jweHeaderChecker)) {
$this->jweLoader = $jweLoaderFactory->create(['jwe_compact'], array_merge($keyEncryptionAlgorithms, $contentEncryptionAlgorithms), null, null, $jweHeaderChecker);
$this->continueOnDecryptionFailure = $continueOnDecryptionFailure;
}