From fea27925491ddbf1d3a3a454769a16c181668748 Mon Sep 17 00:00:00 2001 From: aymm Date: Tue, 9 Mar 2021 19:48:45 +0000 Subject: [PATCH] MAde makeRequest parse access_token itself --- src/APnutI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/APnutI.php b/src/APnutI.php index 005a377..3453511 100644 --- a/src/APnutI.php +++ b/src/APnutI.php @@ -269,7 +269,7 @@ class APnutI } elseif (isset($response['meta'], $response['data'])) { return $response['data']; } elseif (isset($response['access_token'])) { - return $response; + return $response['access_token']; } elseif (!empty($this->redirect_target)) { return $this->redirect_target; } else {