mirror of
https://github.com/yawaflua/Discord.Net.git
synced 2025-12-11 15:56:21 +02:00
Refactor and rename project to yawaflua.Discord.Net; add core entities and interfaces for Discord OAuth2 integration
This commit is contained in:
14
Interfaces/Models/IToken.cs
Normal file
14
Interfaces/Models/IToken.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace yawaflua.Discord.Net.Interfaces.Models;
|
||||
|
||||
public interface IToken
|
||||
{
|
||||
public string? AccessToken { get; set; }
|
||||
public int ExpiresIn { get; set; }
|
||||
public string? RefreshToken { get; set; }
|
||||
public string? Scope { get; set; }
|
||||
public string? TokenType { get; set; }
|
||||
|
||||
Task RevokeAsync(CancellationToken cancellationToken = default);
|
||||
Task RefreshAsync(CancellationToken cancellationToken = default);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user