Skip to content

Commit

Permalink
Refctoring getAuthorizeURL to url
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnCa-X committed Mar 12, 2021
1 parent 1ebd3b4 commit e1892f9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/TwitterLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ public function getLoginUrl()
$sessionSection->oauth_token = $token = $this->requestToken['oauth_token'];
$sessionSection->oauth_token_secret = $this->requestToken['oauth_token_secret'];

$loginUrl = $this->twitterOAuth->getAuthorizeURL($this->requestToken); // Use Sign in with Twitter
$loginUrl = $this->twitterOAuth->url(
'oauth/authorize',
[
'oauth_token' => $this->params['callbackURL'],
]
);
return $loginUrl;
}

Expand Down

0 comments on commit e1892f9

Please sign in to comment.