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

Closed
KngGroup opened this issue Dec 12, 2023 · 2 comments · Fixed by #1480
Closed

AccessTokenTrait::__toString gives different result each call #1389

KngGroup opened this issue Dec 12, 2023 · 2 comments · Fixed by #1480

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

@Sephster
Copy link
Member

Sephster commented Apr 2, 2025

Fixed by #1480

@Sephster Sephster closed this as completed Apr 2, 2025
@Sephster Sephster linked a pull request Apr 2, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants