refreshTokenExchangeInterval property

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

If the exchange interval is set to 0 or less than 0, then 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 will have the same effect as setting this to 0.

It is recommended to keep this interval as low as possible because long lived refresh tokens may increase the security risk.

Implementation

int get refreshTokenExchangeInterval {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_OAuthUserConfiguration_getRefreshTokenExchangeInterval(
            _handle, errorHandler);
  });
}