Skip to content

Conversation

@RuslanKononov
Copy link

It was problem with generation of token from DTO that implement UserInterface and it was fixed via this changes.

Comment on lines 38 to 39
'iat' => $this->clock->now(),
'nbf' => $this->clock->now(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't these 2 entries have the same instance? Or is it irrelevant?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's irrelevant (it was time() before) but you are right, it's more correct to make same nanoseconds time for "initialization" and "not before". maybe it help someone with unit testing

Copy link
Contributor

@maxhelias maxhelias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me it's ok as the LcobucciJWSProvider class hasn't configured the clock injection either.

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 this pull request may close these issues.

2 participants