diff --git a/README.md b/README.md index 5a74f13..1407687 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ try { // curl --request GET --url 'https://accounts.salla.sa/oauth2/user/info' --header 'Authorization: Bearer ' /** @var \Salla\OAuth2\Client\Provider\SallaUser $user */ - $user = $provider->getResourceOwner($token->getToken()); + $user = $provider->getResourceOwner($token); /** * {