shouldRunDioInterceptor method

bool shouldRunDioInterceptor(
  1. dynamic options
)

Implementation

bool shouldRunDioInterceptor(RequestOptions options) {
  if (SuperTokensUtils.getApiDomain(options.uri.toString()) !=
      SuperTokens.config.apiDomain) {
    return false;
  }

  if (SuperTokensUtils.getApiDomain(options.uri.toString()) ==
      SuperTokens.refreshTokenUrl) {
    return false;
  }

  if (!Utils.shouldDoInterceptions(
      options.uri.toString(),
      SuperTokens.config.apiDomain,
      SuperTokens.config.sessionTokenBackendDomain)) {
    return false;
  }

  return true;
}