2019-08-23 13:58:04 +05:30
|
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace api\components\OAuth2\Repositories;
|
|
|
|
|
|
|
|
use League\OAuth2\Server\Entities\RefreshTokenEntityInterface;
|
|
|
|
use League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface;
|
|
|
|
|
|
|
|
class RefreshTokenRepository implements RefreshTokenRepositoryInterface {
|
|
|
|
|
2019-09-22 02:47:21 +05:30
|
|
|
public function getNewRefreshToken(): ?RefreshTokenEntityInterface {
|
2019-12-09 22:01:54 +05:30
|
|
|
return null;
|
2019-08-23 13:58:04 +05:30
|
|
|
}
|
|
|
|
|
2019-09-22 02:47:21 +05:30
|
|
|
public function persistNewRefreshToken(RefreshTokenEntityInterface $refreshTokenEntity): void {
|
2019-12-09 22:01:54 +05:30
|
|
|
// Do nothing
|
2019-08-23 13:58:04 +05:30
|
|
|
}
|
|
|
|
|
2019-09-22 02:47:21 +05:30
|
|
|
public function revokeRefreshToken($tokenId): void {
|
2019-12-09 22:01:54 +05:30
|
|
|
// Do nothing
|
2019-08-23 13:58:04 +05:30
|
|
|
}
|
|
|
|
|
2019-09-22 02:47:21 +05:30
|
|
|
public function isRefreshTokenRevoked($tokenId): bool {
|
2019-12-09 22:01:54 +05:30
|
|
|
return false;
|
2019-08-23 13:58:04 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
}
|