mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Set default token type as bearer for Resource Server
This commit is contained in:
		| @@ -77,6 +77,7 @@ class AuthorizationServer extends AbstractServer | ||||
|     { | ||||
|         $this->storages = []; | ||||
|  | ||||
|         // Set Bearer as the default token type | ||||
|         $this->setTokenType(new Bearer); | ||||
|  | ||||
|         return $this; | ||||
|   | ||||
| @@ -61,6 +61,9 @@ class ResourceServer extends AbstractServer | ||||
|         $scopeStorage->setServer($this); | ||||
|         $this->setStorage('scope', $scopeStorage); | ||||
|  | ||||
|         // Set Bearer as the default token type | ||||
|         $this->setTokenType(new Bearer); | ||||
|  | ||||
|         return $this; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user