mirror of
https://github.com/elyby/accounts.git
synced 2024-12-31 01:20:40 +05:30
23 lines
562 B
PHP
23 lines
562 B
PHP
|
<?php
|
||
|
namespace api\components\OAuth2\Grants;
|
||
|
|
||
|
use api\components\OAuth2\Entities;
|
||
|
|
||
|
class RefreshTokenGrant extends \League\OAuth2\Server\Grant\RefreshTokenGrant {
|
||
|
|
||
|
public $refreshTokenRotate = false;
|
||
|
|
||
|
protected function createAccessTokenEntity() {
|
||
|
return new Entities\AccessTokenEntity($this->server);
|
||
|
}
|
||
|
|
||
|
protected function createRefreshTokenEntity() {
|
||
|
return new Entities\RefreshTokenEntity($this->server);
|
||
|
}
|
||
|
|
||
|
protected function createSessionEntity() {
|
||
|
return new Entities\SessionEntity($this->server);
|
||
|
}
|
||
|
|
||
|
}
|