@bodhiapp/bodhi-js-core 0.0.42 → 0.0.44

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.
@@ -17,6 +17,14 @@ export interface LoginOptions {
17
17
  userRole?: UserScope;
18
18
  requested?: RequestedResourcesV1;
19
19
  onProgress?: LoginProgressCallback;
20
+ /**
21
+ * Exchange (upgrade) the current grant. When true, login proceeds even if already
22
+ * authenticated: the access request is sent with `exchange: true` and the current token,
23
+ * so the review page pre-populates from the source grant and approval replaces the stored
24
+ * tokens with the newly granted ones. When false/undefined an authenticated session
25
+ * short-circuits login (to force a fresh login, logout then login).
26
+ */
27
+ exchange?: boolean;
20
28
  }
21
29
  export type { BrowserInfo, OSInfo } from './platform';
22
30
  export { InMemoryStorage } from './storage';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bodhiapp/bodhi-js-core",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "description": "Core types and interfaces for Bodhi Browser SDK",
5
5
  "type": "module",
6
6
  "main": "dist/bodhi-core.cjs.js",
@@ -85,10 +85,10 @@
85
85
  }
86
86
  },
87
87
  "dependencies": {
88
- "@bodhiapp/bodhi-browser-types": "0.0.42",
89
- "@bodhiapp/setup-modal-types": "0.0.42",
90
- "@bodhiapp/setup-modal-v2-types": "0.0.42",
91
- "@bodhiapp/ts-client": "0.1.37",
88
+ "@bodhiapp/bodhi-browser-types": "0.0.44",
89
+ "@bodhiapp/setup-modal-types": "0.0.44",
90
+ "@bodhiapp/setup-modal-v2-types": "0.0.44",
91
+ "@bodhiapp/ts-client": "0.1.38",
92
92
  "ua-parser-js": "^1.0.40"
93
93
  },
94
94
  "devDependencies": {