@proveanything/smartlinks-auth-ui 0.3.3 → 0.3.5

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/index.js CHANGED
@@ -12492,9 +12492,9 @@ const detectWebView = () => {
12492
12492
  return false;
12493
12493
  };
12494
12494
  const getNativeBridge = () => {
12495
- console.log(`${LOG_PREFIX} 🔍 getNativeBridge checking for SmartlinksNative...`);
12496
- console.log(`${LOG_PREFIX} 🔍 window.SmartlinksNative:`, window.SmartlinksNative);
12497
- const native = window.SmartlinksNative;
12495
+ console.log(`${LOG_PREFIX} 🔍 getNativeBridge checking for Android bridge...`);
12496
+ console.log(`${LOG_PREFIX} 🔍 window.Android:`, window.Android);
12497
+ const native = window.Android;
12498
12498
  if (native?.signInWithGoogle) {
12499
12499
  console.log(`${LOG_PREFIX} ✅ Native bridge found!`, {
12500
12500
  signInWithGoogle: !!native.signInWithGoogle,
@@ -12503,7 +12503,7 @@ const getNativeBridge = () => {
12503
12503
  });
12504
12504
  return native;
12505
12505
  }
12506
- console.log(`${LOG_PREFIX} ❌ No native bridge found (SmartlinksNative.signInWithGoogle not available)`);
12506
+ console.log(`${LOG_PREFIX} ❌ No native bridge found (Android.signInWithGoogle not available)`);
12507
12507
  return null;
12508
12508
  };
12509
12509
  // Sign out from Google on the native side (clears cached Google account)