ArcGIS Pro 2.6 API Reference Guide
MaxTokenExpirationMinutes Property

ArcGIS.Desktop.Core.Portal Namespace > PortalInfo Class : MaxTokenExpirationMinutes Property
Gets the maximum validity in minutes of tokens issued for users of the organization. If the user is NOT signed on -1 (the default) is always returned.
Syntax
public int MaxTokenExpirationMinutes {get;}
Public ReadOnly Property MaxTokenExpirationMinutes As Integer
Remarks
-1 is the default and is a special value that indicates infinite timeout or permanent tokens. For tokens granted using OAuth2 authorization grant, it represents the maximum validity of refresh tokens. For access tokens, the maximum validity is the lower of two weeks or this value.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

PortalInfo Class
PortalInfo Members