@explorins/pers-sdk-react-native 1.5.7 → 1.5.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTransactionSigner.d.ts","sourceRoot":"","sources":["../../src/hooks/useTransactionSigner.ts"],"names":[],"mappings":"AA6EA,UAAU,wBAAwB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAKD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,oBAAoB;
|
|
1
|
+
{"version":3,"file":"useTransactionSigner.d.ts","sourceRoot":"","sources":["../../src/hooks/useTransactionSigner.ts"],"names":[],"mappings":"AA6EA,UAAU,wBAAwB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAKD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,oBAAoB;IAgM7B;;OAEG;2BAvE2C,MAAM,KAAG,QAAQ,wBAAwB,CAAC;IA0ExF;;OAEG;gCAjJgD;QACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B;IAgJC;;OAEG;;IAGH;;OAEG;;CAGN,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE5E;;GAEG;AACH,YAAY,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -76,6 +76,15 @@ export const useTransactionSigner = () => {
|
|
|
76
76
|
const signerSDKRef = useRef(null);
|
|
77
77
|
// Auto-initialize signer when user is authenticated and real SDK is available
|
|
78
78
|
useEffect(() => {
|
|
79
|
+
console.log('[useTransactionSigner] useEffect triggered:', {
|
|
80
|
+
isInitialized,
|
|
81
|
+
isAuthenticated,
|
|
82
|
+
hasUser: !!user,
|
|
83
|
+
isSignerInitialized,
|
|
84
|
+
hasSDK: !!sdk,
|
|
85
|
+
hasAuthProvider: !!authProvider,
|
|
86
|
+
hasCreatePersSignerSDK: !!createPersSignerSDK
|
|
87
|
+
});
|
|
79
88
|
if (isInitialized && isAuthenticated && user && !isSignerInitialized && sdk && authProvider) {
|
|
80
89
|
console.log('[useTransactionSigner] Auto-initializing PERS transaction signer...');
|
|
81
90
|
// Get configuration from the PERS SDK
|
package/dist/index.js
CHANGED
|
@@ -30318,6 +30318,15 @@ const useTransactionSigner = () => {
|
|
|
30318
30318
|
const signerSDKRef = react.useRef(null);
|
|
30319
30319
|
// Auto-initialize signer when user is authenticated and real SDK is available
|
|
30320
30320
|
react.useEffect(() => {
|
|
30321
|
+
console.log('[useTransactionSigner] useEffect triggered:', {
|
|
30322
|
+
isInitialized,
|
|
30323
|
+
isAuthenticated,
|
|
30324
|
+
hasUser: !!user,
|
|
30325
|
+
isSignerInitialized,
|
|
30326
|
+
hasSDK: !!sdk,
|
|
30327
|
+
hasAuthProvider: !!authProvider,
|
|
30328
|
+
hasCreatePersSignerSDK: !!createPersSignerSDK
|
|
30329
|
+
});
|
|
30321
30330
|
if (isInitialized && isAuthenticated && user && !isSignerInitialized && sdk && authProvider) {
|
|
30322
30331
|
console.log('[useTransactionSigner] Auto-initializing PERS transaction signer...');
|
|
30323
30332
|
// Get configuration from the PERS SDK
|