prividium 0.15.0 → 0.15.1

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/README.md CHANGED
@@ -577,6 +577,18 @@ Environment variables (optional):
577
577
 
578
578
  Precedence: CLI flags > environment variables > saved config file.
579
579
 
580
+ ### Local Development
581
+
582
+ When running the full Prividium stack locally (`pnpm dev`), use:
583
+
584
+ ```bash
585
+ npx prividium proxy \
586
+ --rpc-url http://localhost:8000 \
587
+ --user-panel-url http://localhost:3001
588
+ ```
589
+
590
+ Point Foundry, Hardhat, or your scripts at `http://127.0.0.1:24101/rpc` after sign-in.
591
+
580
592
  ### Config Commands
581
593
 
582
594
  ```bash
@@ -37,6 +37,15 @@ export class PopupAuth {
37
37
  console.warn(`Received message from unexpected origin: ${event.origin}`);
38
38
  return;
39
39
  }
40
+ // Stop polling for popup.closed now that a definitive response
41
+ // has arrived. Otherwise, the callback page self-closes (~100ms
42
+ // after posting) while setToken() is still awaiting token
43
+ // expiration, and the poll can reject with "Authentication was
44
+ // cancelled" even though the token gets stored successfully.
45
+ if (checkInterval) {
46
+ clearInterval(checkInterval);
47
+ checkInterval = null;
48
+ }
40
49
  // Handle error from callback
41
50
  if (event.data.error) {
42
51
  popup.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prividium",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "prividium": "bin/cli.js"