initial commit

This commit is contained in:
2024-12-20 01:50:06 -05:00
commit 918faa1937
18 changed files with 890 additions and 0 deletions
@@ -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,
}