Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 11, 2021
1 parent 647394d commit bf8bc4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/Two/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,7 @@ protected function getCodeVerifier()
*/
protected function getCodeChallenge()
{
$verifier = $this->request->session()->pull('code_verifier');
$hashed = hash('sha256', $verifier, true);
$hashed = hash('sha256', $this->request->session()->pull('code_verifier'), true);

return rtrim(strtr(base64_encode($hashed), '+/', '-_'), '=');
}
Expand Down
14 changes: 7 additions & 7 deletions src/Two/GoogleProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ class GoogleProvider extends AbstractProvider implements ProviderInterface
*/
protected $scopeSeparator = ' ';

/**
* Indicates if PKCE should be used.
*
* @var bool
*/
protected $usesPKCE = true;

/**
* The scopes being requested.
*
Expand All @@ -31,6 +24,13 @@ class GoogleProvider extends AbstractProvider implements ProviderInterface
'email',
];

/**
* Indicates if PKCE should be used.
*
* @var bool
*/
protected $usesPKCE = true;

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit bf8bc4a

Please sign in to comment.