oauth2-server icon indicating copy to clipboard operation
oauth2-server copied to clipboard

AccessTokenTrait::__toString gives different result each call

Open KngGroup opened this issue 1 year ago • 1 comments

Due to new DateTimeImmutable() is used inside convertToJWT method, it gives different result each call. Is it possible to add $issuedAt property to make this method pure? Many thanks

KngGroup avatar Dec 12 '23 12:12 KngGroup

Thanks for pointing this out. I'd never really thought that the to string method might be called more than once but makes total sense.

I will get a fix out for this soon. Working on getting a release candidate out for v9 just now so will see if I can bundle it with that. Thank you

Sephster avatar Dec 12 '23 13:12 Sephster