@proveanything/smartlinks-auth-ui 0.3.6 → 0.3.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.
- package/dist/components/SmartlinksAuthUI.d.ts.map +1 -1
- package/dist/index.esm.js +39 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +39 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SmartlinksAuthUI.d.ts","sourceRoot":"","sources":["../../src/components/SmartlinksAuthUI.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAY5D,OAAO,KAAK,EAAE,qBAAqB,EAAyF,MAAM,UAAU,CAAC;AAiJ7I,QAAA,MAAM,mBAAmB,QAAa,OAAO,CAAC,IAAI,CA+CjD,CAAC;AAyFF,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAK/B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"SmartlinksAuthUI.d.ts","sourceRoot":"","sources":["../../src/components/SmartlinksAuthUI.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAY5D,OAAO,KAAK,EAAE,qBAAqB,EAAyF,MAAM,UAAU,CAAC;AAiJ7I,QAAA,MAAM,mBAAmB,QAAa,OAAO,CAAC,IAAI,CA+CjD,CAAC;AAyFF,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAK/B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAguD5D,CAAC"}
|
package/dist/index.esm.js
CHANGED
|
@@ -13425,10 +13425,45 @@ const SmartlinksAuthUI = ({ apiEndpoint, clientId, clientName, accountData, onAu
|
|
|
13425
13425
|
console.log(`${LOG_PREFIX} 📤 Calling nativeBridge.signInWithGoogle with payload object:`, payloadObj);
|
|
13426
13426
|
console.log(`${LOG_PREFIX} 📤 Payload JSON string:`, payload);
|
|
13427
13427
|
log.log('Invoking native signInWithGoogle with payload:', payloadObj);
|
|
13428
|
-
|
|
13429
|
-
console.log(`${LOG_PREFIX}
|
|
13430
|
-
console.log(`${LOG_PREFIX}
|
|
13431
|
-
console.log(`${LOG_PREFIX}
|
|
13428
|
+
// 🔍 DEBUG: Re-validate bridge before invocation
|
|
13429
|
+
console.log(`${LOG_PREFIX} 🔍 Re-validating bridge before invocation...`);
|
|
13430
|
+
console.log(`${LOG_PREFIX} 🔍 window.Android:`, window.Android);
|
|
13431
|
+
console.log(`${LOG_PREFIX} 🔍 window.Android.signInWithGoogle:`, window.Android?.signInWithGoogle);
|
|
13432
|
+
console.log(`${LOG_PREFIX} 🔍 typeof signInWithGoogle:`, typeof window.Android?.signInWithGoogle);
|
|
13433
|
+
console.log(`${LOG_PREFIX} 🔍 nativeBridge === window.Android:`, nativeBridge === window.Android);
|
|
13434
|
+
console.log(`${LOG_PREFIX} 🔍 nativeBridge.signInWithGoogle:`, nativeBridge.signInWithGoogle);
|
|
13435
|
+
console.log(`${LOG_PREFIX} 🔍 typeof nativeBridge.signInWithGoogle:`, typeof nativeBridge.signInWithGoogle);
|
|
13436
|
+
// 🔍 DEBUG: Bridge method comparison
|
|
13437
|
+
console.log(`${LOG_PREFIX} 🔍 Bridge method comparison:`);
|
|
13438
|
+
const android = window.Android;
|
|
13439
|
+
if (android) {
|
|
13440
|
+
console.log(`${LOG_PREFIX} - signInWithGoogle: ${typeof android.signInWithGoogle} | descriptor:`, Object.getOwnPropertyDescriptor(android, 'signInWithGoogle'));
|
|
13441
|
+
console.log(`${LOG_PREFIX} - signOutGoogle: ${typeof android.signOutGoogle} | descriptor:`, Object.getOwnPropertyDescriptor(android, 'signOutGoogle'));
|
|
13442
|
+
console.log(`${LOG_PREFIX} - checkGoogleSignIn: ${typeof android.checkGoogleSignIn} | descriptor:`, Object.getOwnPropertyDescriptor(android, 'checkGoogleSignIn'));
|
|
13443
|
+
console.log(`${LOG_PREFIX} - All keys:`, Object.keys(android));
|
|
13444
|
+
try {
|
|
13445
|
+
console.log(`${LOG_PREFIX} - Prototype:`, Object.getPrototypeOf(android));
|
|
13446
|
+
}
|
|
13447
|
+
catch (e) {
|
|
13448
|
+
console.log(`${LOG_PREFIX} - Prototype: (error getting prototype)`, e);
|
|
13449
|
+
}
|
|
13450
|
+
}
|
|
13451
|
+
// 🔍 DEBUG: Wrap invocation in try/catch to capture exact exception
|
|
13452
|
+
try {
|
|
13453
|
+
console.log(`${LOG_PREFIX} 📤 About to invoke nativeBridge.signInWithGoogle...`);
|
|
13454
|
+
nativeBridge.signInWithGoogle(payload);
|
|
13455
|
+
console.log(`${LOG_PREFIX} ✅ nativeBridge.signInWithGoogle called successfully`);
|
|
13456
|
+
console.log(`${LOG_PREFIX} ⏳ Waiting for native callback...`);
|
|
13457
|
+
console.log(`${LOG_PREFIX} 💡 Android should use serverClientId for GoogleSignInOptions.Builder().requestIdToken(serverClientId)`);
|
|
13458
|
+
}
|
|
13459
|
+
catch (invokeError) {
|
|
13460
|
+
console.error(`${LOG_PREFIX} 💥 EXCEPTION invoking signInWithGoogle:`, invokeError);
|
|
13461
|
+
console.error(`${LOG_PREFIX} 💥 Error type:`, typeof invokeError);
|
|
13462
|
+
console.error(`${LOG_PREFIX} 💥 Error constructor:`, invokeError?.constructor?.name);
|
|
13463
|
+
console.error(`${LOG_PREFIX} 💥 Error message:`, invokeError?.message);
|
|
13464
|
+
console.error(`${LOG_PREFIX} 💥 Error stack:`, invokeError?.stack);
|
|
13465
|
+
throw invokeError; // Re-throw so it propagates normally
|
|
13466
|
+
}
|
|
13432
13467
|
// Don't set loading to false - waiting for native callback
|
|
13433
13468
|
return;
|
|
13434
13469
|
}
|