Skip to content

Commit

Permalink
update oauth client for refresh tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Tustin committed Dec 13, 2022
1 parent 9d77aae commit 70cd4dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 70cd4dc

Please sign in to comment.