@explorins/pers-sdk-react-native 1.5.10 → 1.5.11
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.
|
@@ -177,11 +177,11 @@ export const useTransactionSigner = () => {
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
else if (config?.tenantId) {
|
|
180
|
-
console.log('[useTransactionSigner] No project key provided, will initialize tenant
|
|
180
|
+
console.log('[useTransactionSigner] No project key provided, will initialize tenant with tenantId:', config.tenantId);
|
|
181
181
|
try {
|
|
182
182
|
// Import and initialize tenant environment to get project key
|
|
183
183
|
const { PersService } = await import('@explorins/pers-signer/react-native');
|
|
184
|
-
console.log('[useTransactionSigner] Initializing tenant
|
|
184
|
+
console.log('[useTransactionSigner] Initializing tenant for tenantId:', config.tenantId);
|
|
185
185
|
// We need to set the auth token first for tenant initialization
|
|
186
186
|
if (authProvider) {
|
|
187
187
|
try {
|
|
@@ -197,14 +197,14 @@ export const useTransactionSigner = () => {
|
|
|
197
197
|
console.warn('[useTransactionSigner] Could not get auth token for tenant initialization:', tokenError);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
await PersService.
|
|
201
|
-
console.log('[useTransactionSigner] Tenant
|
|
200
|
+
await PersService.initializeTenant(config.tenantId);
|
|
201
|
+
console.log('[useTransactionSigner] Tenant initialized successfully');
|
|
202
202
|
// Verify configuration
|
|
203
203
|
const persConfig = PersService.getConfig();
|
|
204
204
|
console.log('[useTransactionSigner] PERS service config after tenant initialization:', persConfig);
|
|
205
205
|
}
|
|
206
206
|
catch (configError) {
|
|
207
|
-
console.error('[useTransactionSigner] Failed to initialize tenant
|
|
207
|
+
console.error('[useTransactionSigner] Failed to initialize tenant:', configError);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
const signerSDK = await createPersSignerSDK({
|
package/dist/index.js
CHANGED
|
@@ -30419,11 +30419,11 @@ const useTransactionSigner = () => {
|
|
|
30419
30419
|
}
|
|
30420
30420
|
}
|
|
30421
30421
|
else if (config?.tenantId) {
|
|
30422
|
-
console.log('[useTransactionSigner] No project key provided, will initialize tenant
|
|
30422
|
+
console.log('[useTransactionSigner] No project key provided, will initialize tenant with tenantId:', config.tenantId);
|
|
30423
30423
|
try {
|
|
30424
30424
|
// Import and initialize tenant environment to get project key
|
|
30425
30425
|
const { PersService } = await Promise.resolve().then(function () { return require('./react-native.esm-BtyCg4n1.js'); });
|
|
30426
|
-
console.log('[useTransactionSigner] Initializing tenant
|
|
30426
|
+
console.log('[useTransactionSigner] Initializing tenant for tenantId:', config.tenantId);
|
|
30427
30427
|
// We need to set the auth token first for tenant initialization
|
|
30428
30428
|
if (authProvider) {
|
|
30429
30429
|
try {
|
|
@@ -30439,14 +30439,14 @@ const useTransactionSigner = () => {
|
|
|
30439
30439
|
console.warn('[useTransactionSigner] Could not get auth token for tenant initialization:', tokenError);
|
|
30440
30440
|
}
|
|
30441
30441
|
}
|
|
30442
|
-
await PersService.
|
|
30443
|
-
console.log('[useTransactionSigner] Tenant
|
|
30442
|
+
await PersService.initializeTenant(config.tenantId);
|
|
30443
|
+
console.log('[useTransactionSigner] Tenant initialized successfully');
|
|
30444
30444
|
// Verify configuration
|
|
30445
30445
|
const persConfig = PersService.getConfig();
|
|
30446
30446
|
console.log('[useTransactionSigner] PERS service config after tenant initialization:', persConfig);
|
|
30447
30447
|
}
|
|
30448
30448
|
catch (configError) {
|
|
30449
|
-
console.error('[useTransactionSigner] Failed to initialize tenant
|
|
30449
|
+
console.error('[useTransactionSigner] Failed to initialize tenant:', configError);
|
|
30450
30450
|
}
|
|
30451
30451
|
}
|
|
30452
30452
|
const signerSDK = await createPersSignerSDK({
|
package/package.json
CHANGED
|
@@ -242,11 +242,11 @@ export const useTransactionSigner = () => {
|
|
|
242
242
|
console.error('[useTransactionSigner] Failed to configure PERS service:', configError);
|
|
243
243
|
}
|
|
244
244
|
} else if (config?.tenantId) {
|
|
245
|
-
console.log('[useTransactionSigner] No project key provided, will initialize tenant
|
|
245
|
+
console.log('[useTransactionSigner] No project key provided, will initialize tenant with tenantId:', config.tenantId);
|
|
246
246
|
try {
|
|
247
247
|
// Import and initialize tenant environment to get project key
|
|
248
248
|
const { PersService } = await import('@explorins/pers-signer/react-native');
|
|
249
|
-
console.log('[useTransactionSigner] Initializing tenant
|
|
249
|
+
console.log('[useTransactionSigner] Initializing tenant for tenantId:', config.tenantId);
|
|
250
250
|
|
|
251
251
|
// We need to set the auth token first for tenant initialization
|
|
252
252
|
if (authProvider) {
|
|
@@ -263,14 +263,14 @@ export const useTransactionSigner = () => {
|
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
await (PersService as any).
|
|
267
|
-
console.log('[useTransactionSigner] Tenant
|
|
266
|
+
await (PersService as any).initializeTenant(config.tenantId);
|
|
267
|
+
console.log('[useTransactionSigner] Tenant initialized successfully');
|
|
268
268
|
|
|
269
269
|
// Verify configuration
|
|
270
270
|
const persConfig = (PersService as any).getConfig();
|
|
271
271
|
console.log('[useTransactionSigner] PERS service config after tenant initialization:', persConfig);
|
|
272
272
|
} catch (configError) {
|
|
273
|
-
console.error('[useTransactionSigner] Failed to initialize tenant
|
|
273
|
+
console.error('[useTransactionSigner] Failed to initialize tenant:', configError);
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
|