Skip to content

Commit

Permalink
chore: update dev docs example to use new predefined disposable token…
Browse files Browse the repository at this point in the history
… scope function
  • Loading branch information
anitarua committed Sep 13, 2023
1 parent 4678836 commit a5ed443
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/DocExampleApis/DocExampleApis.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Momento.Sdk" Version="1.21.1" />
<PackageReference Include="Momento.Sdk" Version="1.21.2" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion examples/DocExampleApis/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public static async Task Example_API_GenerateDisposableToken(IAuthClient authCli

// Generate a disposable token with read-only access to all topics in one cache
var allTopicsOneCacheToken = await authClient.GenerateDisposableTokenAsync(
DisposableTokenScopes.TopicSubscribeOnly(CacheSelector.ByName("squirrel"), TopicSelector.AllTopics),
DisposableTokenScopes.TopicSubscribeOnly("squirrel", TopicSelector.AllTopics),
ExpiresIn.Minutes(30)
);

Expand Down

0 comments on commit a5ed443

Please sign in to comment.