Property TokenValidity
TokenValidity
Gets or sets the default suggested lifetime of the token in minutes. This default value can be overridden for a specific credential by setting TokenValidity.
Declaration
public int TokenValidity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The default token validity. |
Remarks
With the OAuth authorization grant workflow, you can generate a permanent OAuth refresh token by specifying -1 as token validity. If you don’t specify a token validity the default refresh token validity is 2 weeks.
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.13 |
| .NET Framework | 100.0 - 100.8 |
| .NET 5 | 100.11 |
| .NET Core 3.1 | 100.7 - 100.8 |
| Xamarin.Android | 100.0 - 100.13 |
| Xamarin.iOS | 100.0 - 100.8 |
| UWP | 100.0 - 100.15 |