mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-11-19 14:13:28 +05:30
Set the default token type as Bearer
This commit is contained in:
1 parent
0b047fd8e4
commit
6300cd5d72
1 file changed
+3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user