mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Set the default token type as Bearer
This commit is contained in:
		| @@ -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