@mdbase-dev/connect 0.1.0-beta.82 → 0.1.0-beta.83
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 +16 -0
- package/dist/browser/integrity.json +1 -1
- package/dist/browser/mdbase-connect.min.js +3 -3
- package/dist/browser/mdbase-connect.min.js.sha384 +1 -1
- package/dist/connect.d.ts +0 -3
- package/dist/connect.js +44 -45
- package/dist/connection-index.d.ts +3 -0
- package/dist/connection-index.js +20 -0
- package/dist/connection.d.ts +3 -0
- package/dist/internal-types.d.ts +13 -0
- package/dist/popup-authorization.d.ts +31 -0
- package/dist/popup-authorization.js +100 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -193,6 +193,22 @@ await session.authorize("choose"); // any compatible collection
|
|
|
193
193
|
await session.authorize({ collectionId }); // exact adoption/migration target
|
|
194
194
|
```
|
|
195
195
|
|
|
196
|
+
Web applications can keep their current page visible while Connect owns the
|
|
197
|
+
collection and permission decision:
|
|
198
|
+
|
|
199
|
+
```ts
|
|
200
|
+
await session.authorize("choose", { presentation: "popup" });
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Call popup authorization directly from a click or other user gesture. The SDK
|
|
204
|
+
pre-opens one Connect window (browsers may show it as a tab), waits for the
|
|
205
|
+
registered callback to complete in that window, updates the existing session,
|
|
206
|
+
and closes it. If the browser blocks the popup, the same request safely falls
|
|
207
|
+
back to the existing full-page redirect. `presentation: "redirect"` remains
|
|
208
|
+
the default. Applications still run their ordinary callback handling in the
|
|
209
|
+
popup; Connect remains the sole owner of compatible collection choice and exact
|
|
210
|
+
permission review.
|
|
211
|
+
|
|
196
212
|
Collection IDs are opaque non-secret locators that may appear in browser
|
|
197
213
|
history and logs. Grants remain the authorization boundary, and names are
|
|
198
214
|
display text that may change.
|