Show / Hide Table of Contents

Property TokenValidity

TokenValidity

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

Declaration
public int TokenValidity { get; set; }
Property Value
Type Description
System.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
TokenValidity

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.13
.NET Framework100.0 - 100.8
.NET 5100.11
.NET Core 3.1100.7 - 100.8
Xamarin.Android100.0 - 100.13
Xamarin.iOS100.0 - 100.8
UWP100.0 - 100.15
In This Article
Back to top Copyright © 2022 Esri.