From a4dc569bbeed3ad02e31a02cdf753ca887ccf2b8 Mon Sep 17 00:00:00 2001 From: Jack Wohlfert Date: Thu, 17 Jul 2025 11:35:37 -0400 Subject: [PATCH] Update README.md You need to store the new refresh token, not the access token. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }); ```