mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-01 08:23:03 +05:30
Merge pull request #893 from Sephster/fix-exception-hint
Change hint so it applies to both the auth and access token requests
This commit is contained in:
commit
52d7952ba5
@ -92,7 +92,7 @@ class OAuthServerException extends \Exception
|
|||||||
public static function unsupportedGrantType()
|
public static function unsupportedGrantType()
|
||||||
{
|
{
|
||||||
$errorMessage = 'The authorization grant type is not supported by the authorization server.';
|
$errorMessage = 'The authorization grant type is not supported by the authorization server.';
|
||||||
$hint = 'Check the `grant_type` parameter';
|
$hint = 'Check that all required parameters have been provided';
|
||||||
|
|
||||||
return new static($errorMessage, 2, 'unsupported_grant_type', 400, $hint);
|
return new static($errorMessage, 2, 'unsupported_grant_type', 400, $hint);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user