Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AccessTokenTrait::__toString gives different result each call #1389

Open
KngGroup opened this issue Dec 12, 2023 · 1 comment
Open

AccessTokenTrait::__toString gives different result each call #1389

KngGroup opened this issue Dec 12, 2023 · 1 comment

Comments

@KngGroup
Copy link

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

@Sephster
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants