Table of Contents
API reference

Method InvalidState

Namespace
DisCatSharp.Hosting.AspNetCore.Ingress.OAuth
Assembly
DisCatSharp.Hosting.AspNetCore.dll

InvalidState(string?, string?, string, IReadOnlyDictionary<string, string?>?, Uri?)

Creates an invalid-state callback result.

public static DiscordOAuthCallbackResult InvalidState(string? state, string? code, string detail, IReadOnlyDictionary<string, string?>? callbackParameters = null, Uri? callbackUri = null)

Parameters

state string
code string
detail string
callbackParameters IReadOnlyDictionary<string, string>
callbackUri Uri

Returns

DiscordOAuthCallbackResult

Remarks

This status indicates the callback could not be matched to a pending state entry.