diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 593f95c..a5ffd26 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -5,7 +5,6 @@ build: environment: php: version: 7.4 - compile_options: '--with-config-file-path=/home/scrutinizer/.phpenv/versions/7.4.3/etc --with-config-file-scan-dir=/home/scrutinizer/.phpenv/versions/7.4.3/etc/conf.d --prefix=/home/scrutinizer/.phpenv/versions/7.4.3 --libexecdir=/home/scrutinizer/.phpenv/versions/7.4.3/libexec --enable-intl --with-openssl --without-pear --with-gd --enable-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr --enable-exif --with-libzip --with-zlib --with-zlib-dir=/usr --with-sodium --with-pdo-sqlite --enable-soap --enable-xmlreader --with-xsl --enable-ftp --with-tidy --with-xmlrpc --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-shmop --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-pcntl --with-readline --enable-mbstring --with-curl --with-pgsql --with-pdo-pgsql --with-gettext --enable-sockets --with-bz2 --enable-bcmath --enable-calendar --with-libdir=lib --enable-fpm --enable-maintainer-zts --with-gmp --with-kerberos --with-imap --with-imap-ssl --with-apxs2=/usr/bin/apxs --with-ldap --with-pear=/home/scrutinizer/.phpenv/versions/7.4.3/pear' nodes: phpunit: diff --git a/src/Security/Guard/JWTTokenAuthenticator.php b/src/Security/Guard/JWTTokenAuthenticator.php index 73feebd..74e53b9 100644 --- a/src/Security/Guard/JWTTokenAuthenticator.php +++ b/src/Security/Guard/JWTTokenAuthenticator.php @@ -57,7 +57,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio $response = parent::onAuthenticationFailure($request, $authException); // TODO: Change the autogenerated stub if ($authException instanceof InvalidTokenException || $authException instanceof ExpiredTokenException) { - $response->headers->clearCookie('BEARER'); + $response->headers->clearCookie('BEARER', '/', null, true, true, 'none'); } return $response;