Options
Options
Configuration options for Hazaar\Auth\Adapter and its subclasses.
class Options extends \Hazaar\Model\StructExtends: Hazaar\Model\Struct
Properties
backend
Session backend implementation used for auth state storage. A class-string, or an
public SessionBackend|string $backend = 'PHPSession'Type: Hazaar\Auth\Interface\SessionBackend|string
already-constructed Hazaar\Auth\Interface\SessionBackend instance.
transport
Session transport implementation responsible for token persistence. A class-string, or
public SessionTransport|string $transport = 'Cookie'Type: Hazaar\Auth\Interface\SessionTransport|string
an already-constructed Hazaar\Auth\Interface\SessionTransport instance.
expire
public int $expire = 3600Type: int
refresh
public int $refresh = 604800Type: int
encryption
public Encryption $encryptionType: Hazaar\Auth\Adapter\Options\Encryption
phpsession
Options passed through to the Hazaar\Auth\Session\Backend\PHPSession backend when it is the active backend.
public array $phpsessionType: array
cache
Options passed through to the Hazaar\Auth\Session\Backend\Cache backend when it
public array $cacheType: array
is the active backend.
jwt
Options passed through to the Hazaar\Auth\Session\Backend\JWT backend when it is
public array $jwtType: array
the active backend.
cookie
Options passed through to the Hazaar\Auth\Session\Transport\Cookie transport when it is the active transport.
public array $cookieType: array
header
Options passed through to the Hazaar\Auth\Session\Transport\Header transport when
public array $headerType: array
it is the active transport.
Methods
construct
protected construct(mixed $data): voidReturns: void
Parameters
| Parameter | Type | Description |
|---|---|---|
$data | mixed |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000