mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-11-24 00:13:26 +05:30
Fix #231
This commit is contained in:
1 parent
856051bfb3
commit
b9debaab26
7 files changed
+80
-5
No files matched your search
@@ -96,6 +96,15 @@ abstract class AbstractTokenEntity
|
||||
return $this->expireTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is the token expired?
|
||||
* @return bool
|
||||
*/
|
||||
public function isExpired()
|
||||
{
|
||||
return ((time() - $this->expireTime) > 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set token ID
|
||||
* @param string $token Token ID
|
||||
|
||||
Reference in new issue
Block a user