mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
The response may be a PSR response which is valid
This commit is contained in:
parent
796106b6c1
commit
1a5030200a
@ -137,7 +137,11 @@ class Server implements EmitterAwareInterface
|
||||
}
|
||||
}
|
||||
|
||||
if (!$tokenResponse instanceof ResponseTypeInterface) {
|
||||
if ($tokenResponse instanceof ResponseInterface) {
|
||||
return $tokenResponse;
|
||||
}
|
||||
|
||||
if ($tokenResponse instanceof ResponseTypeInterface === false) {
|
||||
return OAuthServerException::unsupportedGrantType()->generateHttpResponse($response);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user