From 70cd4dc4cdd07a13ec1c7cdd5cce083654b52be1 Mon Sep 17 00:00:00 2001 From: Tustin <5008148+Tustin@users.noreply.github.com> Date: Tue, 13 Dec 2022 14:22:42 -0600 Subject: [PATCH] update oauth client for refresh tokens --- src/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index d75f279..f174e29 100644 --- a/src/Client.php +++ b/src/Client.php @@ -132,11 +132,11 @@ public function loginWithRefreshToken(string $refreshToken) { // @TODO: Handle errors. $response = $this->post('authz/v3/oauth/token', [ - 'scope' => 'psn:mobile.v1 psn:clientapp', + 'scope' => 'psn:mobile.v2.core psn:clientapp', 'refresh_token' => $refreshToken, 'grant_type' => 'refresh_token', 'token_format' => 'jwt', - ], ['Authorization' => 'Basic YWM4ZDE2MWEtZDk2Ni00NzI4LWIwZWEtZmZlYzIyZjY5ZWRjOkRFaXhFcVhYQ2RYZHdqMHY=']); + ], ['Authorization' => 'Basic MDk1MTUxNTktNzIzNy00MzcwLTliNDAtMzgwNmU2N2MwODkxOnVjUGprYTV0bnRCMktxc1A=']); $this->finalizeLogin($response); }