daviddesberg / PHPoAuthLib

PHP 5.3+ oAuth 1/2 Client Library
Other
1.09k stars 453 forks source link

Serialize the endOfLife field on AbstractToken #585

Open tfvlrue opened 2 years ago

tfvlrue commented 2 years ago

Otherwise, after serialize/deserialize the AbstractToken is incorrectly determined to be expired when making an authentication request (ExpiredTokenException is thrown because endOfLife is null).

It looks like this was introduced by f08a062d5abe903a4092bcf92f855f6e2e7b676a