diff --git a/Action/AuthorizeAction.php b/Action/AuthorizeAction.php index ae1b173..ddecbdd 100644 --- a/Action/AuthorizeAction.php +++ b/Action/AuthorizeAction.php @@ -76,7 +76,7 @@ public function execute($request) throw new InvalidArgumentException($e->getMessage(), $e->getCode()); } - if ($model['http_code'] === 202) { + if ($model['http_metadata']->getStatusCode() === 202) { throw new HttpRedirect($model['_links']['redirect']['href']); }