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

20 lines
578 B
C#
Raw Permalink Normal View History

2024-12-14 17:31:17 +01:00
// <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);
}