@shoutem/api-sdk
Advanced tools
Comparing version 1.1.8-beta6 to 1.1.8-beta7
@@ -81,2 +81,8 @@ 'use strict'; | ||
}); | ||
Object.defineProperty(exports, 'extendShouldIntercept', { | ||
enumerable: true, | ||
get: function get() { | ||
return _fetchTokenIntercept.extendShouldIntercept; | ||
} | ||
}); | ||
@@ -83,0 +89,0 @@ var _settings = require('./services/settings'); |
@@ -7,2 +7,3 @@ 'use strict'; | ||
exports.initializeFetchTokenInterceptor = initializeFetchTokenInterceptor; | ||
exports.extendShouldIntercept = extendShouldIntercept; | ||
@@ -124,2 +125,10 @@ var _lodash = require('lodash'); | ||
fetchTokenIntercept.authorize(refreshToken); | ||
} | ||
function extendShouldIntercept(baseApi, additionalApiEndpoints) { | ||
config = { shouldIntercept: shouldIntercept(baseApi, additionalApiEndpoints) }; | ||
fetchTokenIntercept.configure(config); | ||
fetchTokenIntercept.authorize(refreshToken); | ||
} |
{ | ||
"name": "@shoutem/api-sdk", | ||
"version": "1.1.8-beta6", | ||
"version": "1.1.8-beta7", | ||
"description": "Javascript SDK for Shoutem API using fetch", | ||
@@ -5,0 +5,0 @@ "main": "build/lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31443
683