configure auth cookies
This commit is contained in:
parent
db18fae479
commit
4ee20396e8
3 changed files with 77 additions and 6 deletions
28
backend/app/Auth/AuthCookieSettings.php
Normal file
28
backend/app/Auth/AuthCookieSettings.php
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue