Skip to content

Commit 4b9bd76

Browse files
committed
send grant_type in request for access token
1 parent 1079768 commit 4b9bd76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/IndieAuth/Client.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ public static function getAccessToken($tokenEndpoint, $code, $me, $redirectURI,
173173
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
174174
curl_setopt($ch, CURLOPT_POST, TRUE);
175175
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array(
176+
'grant_type' => 'authorization_code',
176177
'me' => $me,
177178
'code' => $code,
178179
'redirect_uri' => $redirectURI,

0 commit comments

Comments
 (0)