diff --git a/src/Auth/OAuth.php b/src/Auth/OAuth.php index dca08198..7ec9814e 100644 --- a/src/Auth/OAuth.php +++ b/src/Auth/OAuth.php @@ -351,21 +351,27 @@ private static function setCookie( $cookieSet = setcookie( $signatureCookie->getName(), $signatureCookie->getValue(), - $signatureCookie->getExpire(), - "", - "", - $signatureCookie->isSecure(), - $signatureCookie->isHttpOnly(), + [ + 'expires' => $signatureCookie->getExpire(), + 'path' => "", + 'domain' => "", + 'secure' => $signatureCookie->isSecure(), + 'httponly' => $signatureCookie->isHttpOnly(), + 'samesite' => "none" + ], ); $cookieSet = $cookieSet && setcookie( $cookie->getName(), $cookie->getValue(), - $cookie->getExpire(), - "", - "", - $cookie->isSecure(), - $cookie->isHttpOnly(), + [ + 'expires' => $signatureCookie->getExpire(), + 'path' => "", + 'domain' => "", + 'secure' => $signatureCookie->isSecure(), + 'httponly' => $signatureCookie->isHttpOnly(), + 'samesite' => "none" + ], ); // @codeCoverageIgnoreEnd }