2021-09-27 12:42:46 +00:00
|
|
|
using System.Threading.Tasks;
|
|
|
|
using Wabbajack.Networking.Http.Interfaces;
|
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
namespace Wabbajack.Networking.GitHub;
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
public abstract class GithubAuthTokenProvider : ITokenProvider<string>
|
|
|
|
{
|
2022-10-07 20:53:55 +00:00
|
|
|
public abstract ValueTask<string?> Get();
|
2021-10-23 16:51:17 +00:00
|
|
|
public abstract ValueTask SetToken(string val);
|
2022-01-01 22:55:39 +00:00
|
|
|
public abstract ValueTask<bool> Delete();
|
2022-01-03 22:46:28 +00:00
|
|
|
public abstract bool HaveToken();
|
2021-09-27 12:42:46 +00:00
|
|
|
}
|