Method GenerateOAuth2Url
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GenerateOAuth2Url(string, string, bool)
Generates an OAuth2 url.
public Uri GenerateOAuth2Url(string scopes, string state, bool suppressPrompt = false)
Parameters
scopesstringThe space seperated scopes to request.
statestringThe state to use for security reasons. Use GenerateState() or GenerateSecureState(ulong).
suppressPromptboolWhether to suppress the prompt. Works only if previously authorized with same scopes.
Returns
- Uri
The OAuth2 url