Skip to main content
Version: 4.2

OAuthTokenExpiredReason

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Why an access token could not be renewed.

4.2.0+
public enum OAuthTokenExpiredReason

Fields​

NameDescriptionValue
NoRefreshTokenThe access token expired and there is no usable refresh token: the provider issued none — OfflineAccess was false, or it never issues one — or the one it issued has expired. Stored tokens are cleared.
ProviderUnavailableA network failure, timeout or 5xx occurred during the refresh. Stored tokens are kept so the caller can retry.
RefreshRejectedThe refresh grant was rejected: invalid_grant, bad_refresh_token or another 4xx. Stored tokens are cleared.

Used By​

NameDescription
OAuthTokenExpiredEventArgs.ReasonReturns why the token could not be renewed.