Click or drag to resize

GenerateTokenOptionsTokenValidity Property

Note: This API is now obsolete.

Gets or sets the suggested lifetime of the token in minutes. If set, this value overrides the default TokenValidity.

Namespace:  Esri.ArcGISRuntime.Security
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
Syntax
[ObsoleteAttribute("Use TokenExpirationInterval instead.")]
public int TokenValidity { get; set; }

Property Value

Type: Int32
The token validity in minutes.
Remarks
With the OAuth authorization grant workflow, you can generate a permanent OAuth refresh token by specifying a token validity of -1. If you don’t specify a token validity the default refresh token validity is 2 weeks.
See Also