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
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 |