diff --git a/src/AbstractServer.php b/src/AbstractServer.php index 884e8be7..9e0f1b98 100644 --- a/src/AbstractServer.php +++ b/src/AbstractServer.php @@ -123,7 +123,7 @@ abstract class AbstractServer * @param TokenTypeInterface $tokenType The token type * @return void */ - public function setIdType(TokenTypeInterface $tokenType) + public function setTokenType(TokenTypeInterface $tokenType) { $this->tokenType = $tokenType; } diff --git a/src/AuthorizationServer.php b/src/AuthorizationServer.php index 502a811d..b0b0bc14 100644 --- a/src/AuthorizationServer.php +++ b/src/AuthorizationServer.php @@ -78,7 +78,7 @@ class AuthorizationServer extends AbstractServer $this->storages = []; // Set Bearer as the default token type - $this->setIdType(new Bearer); + $this->setTokenType(new Bearer); parent::__construct(); diff --git a/src/ResourceServer.php b/src/ResourceServer.php index 654dbb41..a169401d 100644 --- a/src/ResourceServer.php +++ b/src/ResourceServer.php @@ -64,7 +64,7 @@ class ResourceServer extends AbstractServer $this->setStorage('scope', $scopeStorage); // Set Bearer as the default token type - $this->setIdType(new Bearer); + $this->setTokenType(new Bearer); parent::__construct();