Method setCookie use LcobucciFactory->create(...) and Builder->expiresAt(DateTimeImmutable $expiration).
I use Authorization->setCookie(...) and i want set expiration cookie with additionalClaims: ['exp' => 86400] and not with additionalClaims: ['exp' => new \DateTimeImmutable("+86400 seconds")].
An exception is thrown if a DateTimeImmutable is not used.
I'm working on auto-generating private topics read permission.
My subscriber use :
Method setCookie use LcobucciFactory->create(...) and Builder->expiresAt(DateTimeImmutable $expiration).
I use Authorization->setCookie(...) and i want set expiration cookie with additionalClaims: ['exp' => 86400] and not with additionalClaims: ['exp' => new \DateTimeImmutable("+86400 seconds")]. An exception is thrown if a DateTimeImmutable is not used.