mirror of
https://github.com/yawaflua/Discord.Net.git
synced 2025-12-09 03:49:36 +02:00
Refactor OAuth handling and add GetAuthorizationUrl method
This commit is contained in:
16
Entities/TokenDto.cs
Normal file
16
Entities/TokenDto.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace yawaflua.Discord.Net.Entities;
|
||||
|
||||
public class TokenDto
|
||||
{
|
||||
[JsonPropertyName("access_token")] public string AccessToken { get; set; }
|
||||
|
||||
[JsonPropertyName("expires_in")] public int ExpiresIn { get; set; }
|
||||
|
||||
[JsonPropertyName("refresh_token")] public string RefreshToken { get; set; }
|
||||
|
||||
[JsonPropertyName("scope")] public string Scope { get; set; }
|
||||
|
||||
[JsonPropertyName("token_type")] public string TokenType { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user