diff --git a/README.md b/README.md index 0415df6..179904b 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ When a request fails due to an authentication error, the SDK can automatically t ```php $client = ApiClientFactory::createClient([], function (Authenticator $authenticator) { // This $authenticator contains the refreshed token - echo 'New token: '.$authenticator->accessToken().PHP_EOL; + echo 'New token: '.$authenticator->refreshToken().PHP_EOL; }); ```