mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 05:29:52 +05:30
Change hint so it applies to both the auth and access token requests
This commit is contained in:
parent
7e07033b10
commit
8a619e5c1e
@ -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