grantAccessToken($_POST); } catch (OAuth2ServerException $oauthError) { $oauthError->sendHttpResponse(); } return $res; } } ?>