API reference
Interface IDiscordOAuthTokenExchangeService
- Namespace
- DisCatSharp.Hosting.AspNetCore.Ingress.OAuth
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
Exchanges Discord OAuth authorization codes for access tokens.
public interface IDiscordOAuthTokenExchangeService
Remarks
Implementations should assume the callback has already passed state and redirect validation and focus exclusively on the token exchange with Discord.
Methods
- ExchangeAccessTokenAsync(string, CancellationToken)
Exchanges the specified authorization code for a Discord access token.