2019-08-23 13:58:04 +05:30
|
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2024-12-06 06:04:09 +05:30
|
|
|
namespace common\components\OAuth2\Repositories;
|
2019-08-23 13:58:04 +05:30
|
|
|
|
|
|
|
use League\OAuth2\Server\Entities\RefreshTokenEntityInterface;
|
|
|
|
use League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface;
|
|
|
|
|
2024-12-06 06:04:09 +05:30
|
|
|
final class RefreshTokenRepository implements RefreshTokenRepositoryInterface {
|
2019-08-23 13:58:04 +05:30
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2024-12-06 06:04:09 +05:30
|
|
|
public function revokeRefreshToken(string $tokenId): void {
|
2019-12-09 22:01:54 +05:30
|
|
|
// Do nothing
|
2019-08-23 13:58:04 +05:30
|
|
|
}
|
|
|
|
|
2024-12-06 06:04:09 +05:30
|
|
|
public function isRefreshTokenRevoked(string $tokenId): bool {
|
2019-12-09 22:01:54 +05:30
|
|
|
return false;
|
2019-08-23 13:58:04 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
}
|