Skip to content

Commit 8b67cd7

Browse files
committed
🚿
1 parent c5db278 commit 8b67cd7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

examples/get-token/_flow-oauth1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
header('Location: '.$provider->getAuthorizationURL($PARAMS));
2525
}
2626
// step 3: receive the access token
27-
elseif(isset($_GET['oauth_token']) && isset($_GET['oauth_verifier'])){
27+
elseif(isset($_GET['oauth_token'], $_GET['oauth_verifier'])){
2828
$token = $provider->getAccessToken($_GET['oauth_token'], $_GET['oauth_verifier']);
2929

3030
// save the token [...]

tests/Providers/Unit/LastFMTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,13 @@ public function testParseTokenResponseNoTokenException():void{
9898
* access token
9999
*/
100100

101-
102101
public function testGetAccessToken():void{
103102
$this->setMockResponse($this->streamFactory->createStream($this::TEST_TOKEN));
104103

105104
$token = $this->provider->getAccessToken('code');
106105

107106
$this->assertSame('sk', $token->accessToken);
108107
$this::assertSame('lfm-user', $token->extraParams['session']['name']);
109-
110108
}
111109

112110
public function testGetAccessTokenRequestBodyParams():void{

0 commit comments

Comments
 (0)