Skip to content

Commit

Permalink
Update example.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Apr 2, 2019
1 parent 98265e7 commit ddabf06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ Next, you are ready to authenticate users! You will need two routes: one for red

namespace App\Http\Controllers\Auth;

use Socialite;
use Laravel\Socialite\Facades\Socialite;

class AuthController extends Controller
class PassportController extends Controller
{
/**
* Redirect the user to the KATSANA authentication page.
Expand Down
4 changes: 2 additions & 2 deletions src/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function getTokenUrl()
*/
protected function getUserByToken($token)
{
return $this->getSdkClient()
return $this->sdkClient()
->useCustomApiEndpoint($this->getEnvironmentEndpoint('api'))
->setAccessToken($token)
->uses('Profile')
Expand Down Expand Up @@ -173,7 +173,7 @@ public static function additionalConfigKeys()
*
* @return \Katsana\Sdk\Client
*/
protected function getSdkClient(): Client
protected function sdkClient(): Client
{
$app = Container::getInstance();

Expand Down

0 comments on commit ddabf06

Please sign in to comment.