diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-09 07:21:10 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-09 07:21:10 +0200 |
commit | 54a77cd58589e8c73543360af1469151fb1a550c (patch) | |
tree | 86ab929a2981a8147656c2e6119c7f1e0e130c3e /vendor/OAuth/Common/Token/AbstractToken.php | |
parent | 0d4b6525dd86f837eb9e931e48a92fc6a0033e11 (diff) |
Update dependencies
Diffstat (limited to 'vendor/OAuth/Common/Token/AbstractToken.php')
-rwxr-xr-x | vendor/OAuth/Common/Token/AbstractToken.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/OAuth/Common/Token/AbstractToken.php b/vendor/OAuth/Common/Token/AbstractToken.php index 8d448a18..7a362473 100755 --- a/vendor/OAuth/Common/Token/AbstractToken.php +++ b/vendor/OAuth/Common/Token/AbstractToken.php @@ -118,4 +118,11 @@ abstract class AbstractToken implements TokenInterface { $this->refreshToken = $refreshToken; } + + public function isExpired() + { + return ($this->getEndOfLife() !== TokenInterface::EOL_NEVER_EXPIRES + && $this->getEndOfLife() !== TokenInterface::EOL_UNKNOWN + && time() > $this->getEndOfLife()); + } } |