summaryrefslogtreecommitdiff
path: root/vendor/OAuth/Common/Token/AbstractToken.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-09 07:21:10 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-09 07:21:10 +0200
commit54a77cd58589e8c73543360af1469151fb1a550c (patch)
tree86ab929a2981a8147656c2e6119c7f1e0e130c3e /vendor/OAuth/Common/Token/AbstractToken.php
parent0d4b6525dd86f837eb9e931e48a92fc6a0033e11 (diff)
Update dependencies
Diffstat (limited to 'vendor/OAuth/Common/Token/AbstractToken.php')
-rwxr-xr-xvendor/OAuth/Common/Token/AbstractToken.php7
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());
+ }
}