Skip to content

Commit f08a062

Browse files
author
georgio
committed
fix sleep method
1 parent c3b5e51 commit f08a062

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/OAuth/Common/Token/AbstractToken.php

+5
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,9 @@ public function isExpired()
122122
&& $this->getEndOfLife() !== TokenInterface::EOL_UNKNOWN
123123
&& time() > $this->getEndOfLife();
124124
}
125+
126+
public function __sleep()
127+
{
128+
return ['accessToken'];
129+
}
125130
}

0 commit comments

Comments
 (0)