From d79c98bac7a67b80d9b6df949912d4e420f206a7 Mon Sep 17 00:00:00 2001 From: Toni Rudolf Date: Sat, 3 Dec 2022 20:32:48 +0100 Subject: [PATCH] Fix authorize action --- Action/AuthorizeAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); }