- Passport Version: 10.1.2
- Laravel Version: 8.33.0
- PHP Version: 7.4
- Database Driver & Version: MySQL 8
Description:
When validating the token issued from oauth/login the iat, nbf, and exp fields are coming back in an invalid date format that includes decimals.
Steps To Reproduce:
Create a token, validate it against something like https://jwt.io/
This is breaking in some of our apps because they are attempting to validate the JWT, the workaround, for now, is to disable validation. I believe this was introduced in Passport 10 or 10.1 but not certain.
Another person had similar issues on stack overflow: https://stackoverflow.com/questions/65129092/laravel-passport-chanage-type-of-exp-iat-and-nbf-to-int-or-float
Description:
When validating the token issued from
oauth/logintheiat,nbf, andexpfields are coming back in an invalid date format that includes decimals.Steps To Reproduce:
Create a token, validate it against something like https://jwt.io/
This is breaking in some of our apps because they are attempting to validate the JWT, the workaround, for now, is to disable validation. I believe this was introduced in Passport 10 or 10.1 but not certain.
Another person had similar issues on stack overflow: https://stackoverflow.com/questions/65129092/laravel-passport-chanage-type-of-exp-iat-and-nbf-to-int-or-float