mirror of
https://github.com/elyby/accounts.git
synced 2024-11-06 16:21:08 +05:30
28 lines
696 B
PHP
28 lines
696 B
PHP
<?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 {
|
|
|
|
public function getNewRefreshToken(): ?RefreshTokenEntityInterface {
|
|
return null;
|
|
}
|
|
|
|
public function persistNewRefreshToken(RefreshTokenEntityInterface $refreshTokenEntity): void {
|
|
// Do nothing
|
|
}
|
|
|
|
public function revokeRefreshToken($tokenId): void {
|
|
// Do nothing
|
|
}
|
|
|
|
public function isRefreshTokenRevoked($tokenId): bool {
|
|
return false;
|
|
}
|
|
|
|
}
|