mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2025-04-19 00:43:04 +03:00
32 lines
870 B
PHP
32 lines
870 B
PHP
<?php
|
|
/**
|
|
* @package Joomla.Site
|
|
* @subpackage com_oauthserver
|
|
*
|
|
* @copyright (c) 2024. Webmasterskaya. <https://webmasterskaya.xyz>
|
|
* @license MIT; see LICENSE.txt
|
|
**/
|
|
|
|
namespace Webmasterskaya\Component\OauthServer\Site\Entity;
|
|
|
|
use League\OAuth2\Server\Entities\RefreshTokenEntityInterface;
|
|
use League\OAuth2\Server\Entities\Traits\EntityTrait;
|
|
use League\OAuth2\Server\Entities\Traits\RefreshTokenTrait;
|
|
|
|
\defined('_JEXEC') or die;
|
|
|
|
class RefreshToken implements RefreshTokenEntityInterface
|
|
{
|
|
use EntityTrait;
|
|
use RefreshTokenTrait;
|
|
|
|
public function getData(): array
|
|
{
|
|
return [
|
|
'identifier' => $this->getIdentifier(),
|
|
'expiry' => $this->getExpiryDateTime(),
|
|
'access_token_identifier' => $this->getAccessToken()->getIdentifier()
|
|
];
|
|
}
|
|
}
|