mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-02 00:43:11 +05:30
fix exception type in example
OAuthException has httpStatusCode and getHttpHeaders(). \Exception does not
This commit is contained in:
parent
bbad08607b
commit
8f8ea85261
@ -47,7 +47,7 @@ $router->post('/access_token', function (Request $request) use ($server) {
|
||||
]
|
||||
);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
} catch (OAuthException $e) {
|
||||
|
||||
return new Response(
|
||||
json_encode([
|
||||
|
Loading…
Reference in New Issue
Block a user