15 lines
357 B
C#
15 lines
357 B
C#
using TechHelper.Context;
|
|
using Microsoft.AspNetCore.Identity;
|
|
using System.Security.Claims;
|
|
using Entities.Contracts;
|
|
|
|
namespace TechHelper.Services
|
|
{
|
|
public interface IAuthenticationService
|
|
{
|
|
public Task<string> GetToken(User user);
|
|
public string GenerateRefreshToken();
|
|
public ClaimsPrincipal GetPrincipalFromExpiredToken(string token);
|
|
}
|
|
}
|