refreshTokenExchangeInterval property

int get refreshTokenExchangeInterval

The requested exchange interval (in minutes) for the OAuth refresh token. Use this to exchange a refresh token before it expires. This will limit the number of times a user will have to login because of expiring tokens.

  • The default value is 1440 minutes (24 hours).
  • Refresh token exchange is supported for ArcGIS Online and ArcGIS Enterprise portal 10.6 and later.
  • If the exchange interval is set to 0 or less than 0, the refresh token will never be exchanged and will eventually expire, causing the user to have to log in again.
  • To have any affect, this should be set to a value less than the OAuthUserConfiguration.refreshTokenExpirationInterval.
  • Setting it to a value greater than the OAuthUserConfiguration.refreshTokenExpirationInterval has the same effect as setting it to 0.
  • It is recommended to keep this interval as low as possible because long lived refresh tokens may increase the security risk.