@dubsdotapp/expo 0.2.14 → 0.2.15

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
@@ -1308,22 +1308,12 @@ function ManagedWalletProvider({
1308
1308
  }
1309
1309
  return;
1310
1310
  }
1311
- console.log(TAG3, "Phantom path \u2014 checking for saved session...");
1311
+ console.log(TAG3, "Phantom path \u2014 clearing any saved session, will require fresh connect");
1312
+ await storage.deleteItem(STORAGE_KEYS.PHANTOM_SESSION).catch(() => {
1313
+ });
1312
1314
  try {
1313
- const savedJson = await storage.getItem(STORAGE_KEYS.PHANTOM_SESSION);
1314
- if (savedJson && !cancelled) {
1315
- console.log(TAG3, "Found saved Phantom session, restoring...");
1316
- const saved = JSON.parse(savedJson);
1317
- phantom.restoreSession(saved);
1318
- if (!cancelled) {
1319
- console.log(TAG3, "Session restored, marking connected");
1320
- setConnected(true);
1321
- }
1322
- } else {
1323
- console.log(TAG3, "No saved Phantom session found");
1324
- }
1325
1315
  } catch (err) {
1326
- console.log(TAG3, "Failed to restore Phantom session:", err instanceof Error ? err.message : err);
1316
+ console.log(TAG3, "Unexpected error during Phantom init:", err instanceof Error ? err.message : err);
1327
1317
  } finally {
1328
1318
  if (!cancelled) {
1329
1319
  console.log(TAG3, "Phantom init complete, marking ready");