bringid 0.5.3-beta-rc.5 → 0.5.3-beta

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
@@ -109,7 +109,7 @@ export default function RootLayout({
109
109
 
110
110
  ## API
111
111
 
112
- ### `new BringID({ appId, mode? })`
112
+ ### `new BringID({ appId, mode?, redirectUrl? })`
113
113
 
114
114
  Creates a new SDK instance. The `appId` is required.
115
115
 
@@ -121,18 +121,23 @@ const bringid = new BringID({ appId: "0x..." });
121
121
 
122
122
  // Development mode
123
123
  const bringid = new BringID({ appId: "0x...", mode: "dev" });
124
+
125
+ // With redirect URL (for mini-app / OAuth redirect flows)
126
+ const bringid = new BringID({ appId: "0x...", redirectUrl: "https://yourapp.com/callback" });
124
127
  ```
125
128
 
126
129
  **Options:**
127
130
 
128
131
  - `appId` (string, required) — Your application ID
129
132
  - `mode` (`"production"` | `"dev"`, optional) — Defaults to `"production"`. Dev mode uses staging APIs and Sepolia testnet configs.
133
+ - `redirectUrl` (string, optional) — URL passed to the widget for OAuth/mini-app redirect flows. URL-encoded before forwarding.
130
134
 
131
135
  **Instance methods:**
132
136
 
133
137
  - `setMode(mode)` — Switch between `"production"` and `"dev"`
134
138
  - `setAppId(appId)` — Update the app ID
135
139
  - `getAppId()` — Get the current app ID
140
+ - `getMode()` — Get the current mode
136
141
 
137
142
  ### `bringid.getAddressScore(address)`
138
143
 
@@ -1 +1 @@
1
- {"version":3,"file":"use-message-proxy.d.ts","sourceRoot":"","sources":["../../src/hooks/use-message-proxy.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAmB,MAAM,SAAS,CAAA;AAI7D,iBAAS,eAAe,CACtB,OAAO,EAAE,OAAO,EAChB,SAAS,KAAA,EACT,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,EACtC,iBAAiB,CAAC,EAAE,kBAAkB,QA+GvC;AAED,eAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"use-message-proxy.d.ts","sourceRoot":"","sources":["../../src/hooks/use-message-proxy.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAmB,MAAM,SAAS,CAAA;AAI7D,iBAAS,eAAe,CACtB,OAAO,EAAE,OAAO,EAChB,SAAS,KAAA,EACT,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,EACtC,iBAAiB,CAAC,EAAE,kBAAkB,QA4GvC;AAED,eAAe,eAAe,CAAA"}