Skip to content

Commit

Permalink
Add cancellation token support for ticket retrieval (#1748)
Browse files Browse the repository at this point in the history
Updated the `GetUserTicketsAsync` method to include a cancellation token parameter. This ensures proper cancellation handling during user ticket retrieval.
  • Loading branch information
khalidabuhakmeh authored Feb 4, 2025
1 parent 955b388 commit 5aba2de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public async Task RevokeSessionsAsync(UserSessionsFilter filter, CancellationTok

if (_options.RevokeRefreshTokenOnLogout)
{
var tickets = await _ticketStore.GetUserTicketsAsync(filter);
var tickets = await _ticketStore.GetUserTicketsAsync(filter, cancellationToken);
if (tickets?.Any() == true)
{
foreach (var ticket in tickets)
Expand Down

0 comments on commit 5aba2de

Please sign in to comment.