We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29d1fbb commit 85e2c38Copy full SHA for 85e2c38
src/oauth/PhutilMediaWikiAuthAdapter.php
@@ -103,15 +103,8 @@ protected function loadOAuthAccountData() {
103
$token_header = sprintf('Bearer %s', $this->getAccessToken());
104
$future->addHeader('Authorization', $token_header);
105
list($body) = $future->resolvex();
106
- try {
107
- $data = $this->decodeJWT($body);
108
- return $data['result'];
109
- } catch (Exception $ex) {
110
- throw new Exception(
111
- pht(
112
- 'Expected valid JSON response from MediaWiki request'),
113
- $ex);
114
- }
+ $data = $this->decodeJWT($body);
+ return $data['result'];
115
}
116
117
private function decodeJWT($jwt) {
0 commit comments