Initial version

This commit is contained in:
2026-06-09 22:27:38 +02:00
parent 5afbf3b01c
commit 5ff2ac8941
57 changed files with 2343 additions and 98 deletions
+19
View File
@@ -0,0 +1,19 @@
using EonaCat.gRPC.Proto;
namespace EonaCat.gRPC.Client;
public interface ITokenProvider
{
Task<AuthenticationResponse> GetTokenAsync();
}
public class AppTokenProvider : ITokenProvider
{
private AuthenticationResponse _token;
public async Task<AuthenticationResponse> GetTokenAsync()
{
if (_token == null)
_token = new AuthenticationResponse { AccessToken = "test", ExpiresIn = 300 };
return _token;
}
}