configure auth cookies

This commit is contained in:
Yisroel Baum 2026-07-02 01:17:13 +03:00
parent db18fae479
commit 4ee20396e8
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
3 changed files with 77 additions and 6 deletions

View file

@ -0,0 +1,28 @@
<?php
namespace App\Auth;
class AuthCookieSettings
{
public function __construct(
private bool $secure,
private ?string $domain,
private string $sameSite,
) {
}
public function isSecure(): bool
{
return $this->secure;
}
public function getDomain(): ?string
{
return $this->domain;
}
public function getSameSite(): string
{
return $this->sameSite;
}
}