AuthenticationRefreshOptions.EnableAutoRefresh Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables automatic token refresh before the server-reported token expiration.
Default is true.
public bool EnableAutoRefresh { get; set; }
member this.EnableAutoRefresh : bool with get, set
Public Property EnableAutoRefresh As Boolean
Property Value
Remarks
When enabled, the client schedules a refresh based on the tokenLifetimeSeconds reported by the server in the negotiate (and subsequent refresh) responses. If the server does not report a token lifetime, no automatic refresh is scheduled regardless of this setting; the application may still call RefreshAuthenticationAsync(CancellationToken) manually.