File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export const IS_BROWSER = Boolean(typeof window === 'object' && window !== null
55export const API_STORE = env . ECOMCLIENT_API_STORE || 'https://api.e-com.plus/v1/'
66export const API_STORE_CACHE = env . ECOMCLIENT_API_STORE_CACHE || 'https://ioapi.ecvol.com/:id/v1/'
77export const API_PASSPORT = env . ECOMCLIENT_API_PASSPORT || 'https://passport.e-com.plus/v1/'
8+ export const API_PASSPORT_IDENTITY = env . ECOMCLIENT_API_PASSPORT_IDENTITY
89export const API_SEARCH = env . ECOMCLIENT_API_SEARCH || 'https://apx-search.e-com.plus/api/v1/'
910export const API_MODULES = env . ECOMCLIENT_API_MODULES || 'https://apx-mods.e-com.plus/api/v1/'
1011export const API_STOREFRONT = env . ECOMCLIENT_API_STOREFRONT || 'https://iostorefront.ecvol.com/api/v1/'
Original file line number Diff line number Diff line change 11import { _config } from '@ecomplus/utils'
2- import { API_PASSPORT } from './../lib/constants'
2+ import { API_PASSPORT_IDENTITY , API_PASSPORT } from './../lib/constants'
33import request from './../lib/request'
44
55const passport = ( {
@@ -12,6 +12,9 @@ const passport = ({
1212 axiosConfig
1313} ) => {
1414 let baseURL = API_PASSPORT
15+ if ( API_PASSPORT_IDENTITY && / \/ ( i d e n t i f y | t o k e n | o a u t h - p r o v i d e r s ) ( \. j s o n ) ? $ / . test ( url ) ) {
16+ baseURL = API_PASSPORT_IDENTITY
17+ }
1518 if ( ! url . startsWith ( 'http' ) && ! url . startsWith ( '/' + storeId ) ) {
1619 // set Store ID on URL
1720 baseURL += storeId
You can’t perform that action at this time.
0 commit comments