diff --git a/examples/web/cache/refresh-disposable-tokens.ts b/examples/web/cache/refresh-disposable-tokens.ts index edd0d4004..e62001ff0 100644 --- a/examples/web/cache/refresh-disposable-tokens.ts +++ b/examples/web/cache/refresh-disposable-tokens.ts @@ -214,7 +214,7 @@ const main = async () => { const wrappedTopicClient = await TokenRefreshingTopicClient.create({ refreshBeforeExpiryMs: 10_000, // 10 seconds before token expires, refresh it. - getDisposableToken: tokenVendingMachine, + getDisposableToken: localTokenVendingMachine, }); await wrappedTopicClient.subscribe('my-cache', 'topic-1', {