Property RefreshTokenExchangeInterval
RefreshTokenExchangeInterval
Gets or sets the exchange interval for the OAuth refresh token. The default is 24 hours.
Declaration
public TimeSpan RefreshTokenExchangeInterval { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan | The exchange interval for the OAuth refresh token. The default is 24 hours. |
Remarks
Set to System.TimeSpan.Zero to disable automatic exchange of refresh tokens. This will cause the ChallengeHandler to be called after this credential's refresh tokens expires.
You may need to use a shorter exchange interval when refresh tokens are short-lived. Refresh tokens may expire quickly due to organization's security policy or when requesting a short TokenExpirationInterval. Check the Esri.ArcGISRuntime.Security.OAuthTokenCredential.RefreshTokenExpirationDate property of newly-generated OAuth credentials to see if exchange interval needs to be adjusted.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.7 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.7 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.7 - 100.15 |
Xamarin.iOS | 100.7 - 100.15 |
UWP | 100.7 - 100.15 |