From da225379ba2137d8b2f5beaef4fc693ccc915dfe Mon Sep 17 00:00:00 2001 From: tfvlrue Date: Thu, 20 Jan 2022 16:11:54 -0500 Subject: [PATCH] Serialize the endOfLife field on AbstractToken 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 --- src/OAuth/Common/Token/AbstractToken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OAuth/Common/Token/AbstractToken.php b/src/OAuth/Common/Token/AbstractToken.php index 2ebdc023..3604a2f6 100644 --- a/src/OAuth/Common/Token/AbstractToken.php +++ b/src/OAuth/Common/Token/AbstractToken.php @@ -125,6 +125,6 @@ public function isExpired() public function __sleep() { - return ['accessToken']; + return ['accessToken', 'endOfLife']; } }