mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Removed unused code
This commit is contained in:
@@ -48,20 +48,6 @@ class OAuthServerException extends \Exception
|
||||
$this->redirectUri = $redirectUri;
|
||||
}
|
||||
|
||||
/**
|
||||
* Invalid grant type error.
|
||||
*
|
||||
* @return static
|
||||
*/
|
||||
public static function invalidGrantType()
|
||||
{
|
||||
$errorMessage = 'The provided authorization grant is invalid, expired, revoked, does not match ' .
|
||||
'the redirection URI used in the authorization request, or was issued to another client.';
|
||||
$hint = 'Check the `grant_type` parameter';
|
||||
|
||||
return new static($errorMessage, 1, 'invalid_grant', 400, $hint);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsupported grant type error.
|
||||
*
|
||||
@@ -206,7 +192,7 @@ class OAuthServerException extends \Exception
|
||||
$headers = $this->getHttpHeaders();
|
||||
|
||||
$payload = [
|
||||
'error' => $this->errorType,
|
||||
'error' => $this->getErrorType(),
|
||||
'message' => $this->getMessage(),
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user