mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
17 lines
389 B
C#
17 lines
389 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace Wabbajack.Networking.Http.Interfaces;
|
|
|
|
/// <summary>
|
|
/// Interface for services that need a auth token of some sort
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
public interface ITokenProvider<T>
|
|
{
|
|
public ValueTask<T?> Get();
|
|
|
|
public ValueTask SetToken(T val);
|
|
public ValueTask<bool> Delete();
|
|
|
|
public bool HaveToken();
|
|
} |