Skip to content

Expiry Claim Date Time Number Fix

Choose a tag to compare

@RobDWaller RobDWaller released this 20 Jun 15:46
· 485 commits to master since this release
2ef7fec

This release fixes #13.

It raised the issue that the expiry claim did not comply with the JWT RFC. The library has been updated so it now outputs the expiry claim as a date time number rather than a date time string. You can still generate tokens based on a date time string and it will still validate tokens that use a date time string for the expiry claim.

Other additions include:

  • Added Mockery for enhanced testing.
  • Changed assertEquals() to assertSame() so unit tests are more robust.
  • Added phpstan.neon to ignore Mockery errors introduced.
  • Amended TravisCI pipeline to make use phpstan.neon config when running phpstan.