diff --git a/src/Auth0.ManagementApi/Clients/IUsersClient.cs b/src/Auth0.ManagementApi/Clients/IUsersClient.cs
index b29235de..1d446a45 100644
--- a/src/Auth0.ManagementApi/Clients/IUsersClient.cs
+++ b/src/Auth0.ManagementApi/Clients/IUsersClient.cs
@@ -1,9 +1,13 @@
+
+
namespace Auth0.ManagementApi.Clients
{
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Auth0.ManagementApi.Models.Users;
+ using Auth0.ManagementApi.Models.RefreshTokens;
+ using Auth0.ManagementApi.Models.Sessions;
using Models;
using Paging;
@@ -267,5 +271,41 @@ public interface IUsersClient
/// The cancellation token to cancel operation.
/// A that represents the asynchronous delete operation.
Task DeleteAuthenticationMethodAsync(string userId, string authenticationMethodId, CancellationToken cancellationToken = default);
+
+ ///
+ /// Retrieve details for a user's refresh tokens.
+ ///
+ ///
+ ///
+ ///
+ /// Collection of
+ Task> GetRefreshTokensAsync(
+ UserRefreshTokensGetRequest request, CheckpointPaginationInfo pagination, CancellationToken cancellationToken = default);
+
+ ///
+ /// Delete all refresh tokens for a user.
+ ///
+ /// ID of the user to remove refresh tokens for
+ ///
+ ///
+ Task DeleteRefreshTokensAsync(string userId, CancellationToken cancellationToken = default);
+
+ ///
+ /// Retrieve details for a user's sessions.
+ ///
+ ///
+ ///
+ ///
+ /// Collection of
+ Task> GetUserSessionsAsync(
+ UserSessionsGetRequest request, CheckpointPaginationInfo pagination, CancellationToken cancellationToken = default);
+
+ ///
+ /// Delete all sessions for a user.
+ ///
+ /// ID of the user to remove sessions for
+ ///
+ ///
+ Task DeleteSessionsAsync(string userId, CancellationToken cancellationToken = default);
}
}
diff --git a/src/Auth0.ManagementApi/Clients/UsersClient.cs b/src/Auth0.ManagementApi/Clients/UsersClient.cs
index c381a124..06e4fb34 100644
--- a/src/Auth0.ManagementApi/Clients/UsersClient.cs
+++ b/src/Auth0.ManagementApi/Clients/UsersClient.cs
@@ -7,6 +7,8 @@
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
+using Auth0.ManagementApi.Models.RefreshTokens;
+using Auth0.ManagementApi.Models.Sessions;
namespace Auth0.ManagementApi.Clients
{
@@ -21,6 +23,8 @@ public class UsersClient : BaseClient, IUsersClient
readonly JsonConverter[] permissionsConverters = new JsonConverter[] { new PagedListConverter("permissions") };
readonly JsonConverter[] organizationsConverters = new JsonConverter[] { new PagedListConverter("organizations") };
readonly JsonConverter[] authenticationMethodConverters = new JsonConverter[] { new PagedListConverter("authenticators") };
+ readonly JsonConverter[] refreshTokensConverter = new JsonConverter[] { new CheckpointPagedListConverter("tokens") };
+ readonly JsonConverter[] sessionsConverter = new JsonConverter[] { new CheckpointPagedListConverter("sessions") };
///
/// Initializes a new instance of .
@@ -471,5 +475,69 @@ public Task DeleteAuthenticationMethodAsync(string userId, string authentication
{
return Connection.SendAsync