diff --git a/src/AuthorizationServer.php b/src/AuthorizationServer.php index eddfe6f0..0b172687 100644 --- a/src/AuthorizationServer.php +++ b/src/AuthorizationServer.php @@ -18,6 +18,7 @@ use League\OAuth2\Server\Storage\AuthCodeInterface; use League\OAuth2\Server\Storage\RefreshTokenInterface; use League\OAuth2\Server\Storage\SessionInterface; use League\OAuth2\Server\Storage\ScopeInterface; +use League\OAuth2\Server\TokenType\Bearer; use Symfony\Component\HttpFoundation\Request; /** @@ -76,6 +77,8 @@ class AuthorizationServer extends AbstractServer { $this->storages = []; + $this->setTokenType(new Bearer); + return $this; }