initial commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
namespace OpenHarbor.JwtTokenManager.Abstractions;
|
||||
|
||||
public interface IJwtTokenManagerService
|
||||
{
|
||||
Task<JwtTokenManagerResult> GetTokenAsync(CancellationToken cancellationToken = default);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace OpenHarbor.JwtTokenManager.Abstractions;
|
||||
|
||||
public class JwtTokenManagerResult
|
||||
{
|
||||
public required string Token { get; set; }
|
||||
public required TokenType TokenType { get; set; }
|
||||
public required DateTime ExpiresAt { get; set; }
|
||||
public int ExpiresIn { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace OpenHarbor.JwtTokenManager.Abstractions;
|
||||
|
||||
public enum TokenType
|
||||
{
|
||||
Bearer,
|
||||
}
|
||||
Reference in New Issue
Block a user