astral-api/Astral.Core/RepositoryInterfaces/IRefreshTokenRepository.cs

19 lines
578 B
C#

// <copyright file="IRefreshTokenRepository.cs" company="alveus.dev">
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
// </copyright>
using Astral.Core.Entities;
namespace Astral.Core.RepositoryInterfaces;
/// <summary>
/// <see cref="RefreshToken"/> Repository.
/// </summary>
public interface IRefreshTokenRepository : IGenericRepository<RefreshToken, string>
{
/// <summary>
/// Revoke all tokens for the provided user id.
/// </summary>
/// <param name="userId">User id.</param>
Task RevokeAllForUser(Guid userId);
}