diff --git a/src/Entities/Interfaces/RefreshTokenEntityInterface.php b/src/Entities/Interfaces/RefreshTokenEntityInterface.php index f6c91b97..a095d4a1 100644 --- a/src/Entities/Interfaces/RefreshTokenEntityInterface.php +++ b/src/Entities/Interfaces/RefreshTokenEntityInterface.php @@ -1,17 +1,42 @@ originalAccessToken = $accessToken; + $this->accessToken = $accessToken; } /** - * Get the access token that the refresh token was originally associated with - * @return \League\OAuth2\Server\Entities\Interfaces\AccessTokenEntityInterface + * @inheritdoc */ - public function getOriginalAccessToken() + public function getAccessToken() { - return $this->originalAccessToken; + return $this->accessToken; + } + + /** + * Get the token's expiry date time + * @return DateTime + */ + public function getExpiryDateTime() + { + return $this->expiryDateTime; + } + + /** + * Set the date time when the token expires + * + * @param DateTime $dateTime + */ + public function setExpiryDateTime(DateTime $dateTime) + { + $this->expiryDateTime = $dateTime; } } \ No newline at end of file