mirror of
https://github.com/elyby/accounts.git
synced 2024-12-27 23:50:19 +05:30
17 lines
467 B
PHP
17 lines
467 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace common\components\OAuth2\Repositories;
|
|
|
|
use League\OAuth2\Server\Entities\DeviceCodeEntityInterface;
|
|
use League\OAuth2\Server\Repositories\DeviceCodeRepositoryInterface;
|
|
|
|
interface ExtendedDeviceCodeRepositoryInterface extends DeviceCodeRepositoryInterface {
|
|
|
|
/**
|
|
* @phpstan-param non-empty-string $userCode
|
|
*/
|
|
public function getDeviceCodeEntityByUserCode(string $userCode): ?DeviceCodeEntityInterface;
|
|
|
|
}
|