mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 10:18:55 +05:30
Set the default token type as Bearer
This commit is contained in:
parent
0b047fd8e4
commit
6300cd5d72
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user