@phygitallabs/tapquest-core 6.7.5 → 6.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bun.lock +8 -8
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/providers/ServicesProvider.tsx +13 -1
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -37,6 +37,16 @@ export const ServicesProvider: React.FC<ServicesProviderProps> = ({
|
|
|
37
37
|
const { signOut, refreshToken } = useAuth();
|
|
38
38
|
const { environment, version } = apiConfig;
|
|
39
39
|
const [commonServiceConfig, setCommonServiceConfig] = useState<ServiceConfig | null>(null);
|
|
40
|
+
|
|
41
|
+
const [deviceUid, setDeviceUid] = useState<string>("");
|
|
42
|
+
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
const initDeviceUid = async () => {
|
|
45
|
+
const deviceUid = await checkDeviceUid();
|
|
46
|
+
setDeviceUid(deviceUid);
|
|
47
|
+
}
|
|
48
|
+
initDeviceUid();
|
|
49
|
+
}, []);
|
|
40
50
|
|
|
41
51
|
// Init client
|
|
42
52
|
useEffect(() => {
|
|
@@ -132,11 +142,13 @@ export const ServicesProvider: React.FC<ServicesProviderProps> = ({
|
|
|
132
142
|
baseURL={`${serviceApiUrl[environment].API_GENERATE_CERTIFICATE_URL}/v1`}
|
|
133
143
|
>
|
|
134
144
|
<PhygitalConsentProvider
|
|
145
|
+
deviceId={deviceUid}
|
|
135
146
|
queryClient={commonServiceConfig.queryClient as any}
|
|
136
147
|
axiosConfig={commonServiceConfig.axiosConfig}
|
|
137
148
|
requestInterceptors={commonServiceConfig.requestInterceptors}
|
|
138
149
|
responseInterceptors={commonServiceConfig.responseInterceptors}
|
|
139
|
-
baseURL={`${serviceApiUrl[environment].API_CONSENT_URL}
|
|
150
|
+
baseURL={`${serviceApiUrl[environment].API_CONSENT_URL}/v1`}
|
|
151
|
+
|
|
140
152
|
>
|
|
141
153
|
{children}
|
|
142
154
|
</PhygitalConsentProvider>
|