@shoutem/api-sdk
Advanced tools
Comparing version 1.1.8-beta7 to 1.1.8-beta8
@@ -62,3 +62,2 @@ 'use strict'; | ||
var apiSubdomainRegex = new RegExp('^([.a-z0-9]*?).*(localhost|' + baseApi + '|' + additionalEndpoints + ')', 'g'); | ||
console.log('konzol faking logaj se u šudinterceptu'); | ||
return function (request) { | ||
@@ -127,8 +126,14 @@ // add auth headers only if we're accessing known API endpoints | ||
function extendShouldIntercept(baseApi, additionalApiEndpoints) { | ||
function extendShouldIntercept(config) { | ||
console.log('fti config3', config); | ||
var refreshToken = config.auth.token; | ||
var _config$url2 = config.url, | ||
baseApi = _config$url2.baseApi, | ||
additionalApiEndpoints = _config$url2.additionalApiEndpoints; | ||
config = { shouldIntercept: shouldIntercept(baseApi, additionalApiEndpoints) }; | ||
fetchTokenIntercept.configure(config); | ||
var configiruation = { shouldIntercept: shouldIntercept(baseApi, additionalApiEndpoints) }; | ||
fetchTokenIntercept.configure(configiruation); | ||
fetchTokenIntercept.authorize(refreshToken); | ||
} |
{ | ||
"name": "@shoutem/api-sdk", | ||
"version": "1.1.8-beta7", | ||
"version": "1.1.8-beta8", | ||
"description": "Javascript SDK for Shoutem API using fetch", | ||
@@ -47,2 +47,2 @@ "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
31597
687