@bodhiapp/bodhi-js-core 0.0.43 → 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.
@@ -18,12 +18,13 @@ export interface LoginOptions {
18
18
  requested?: RequestedResourcesV1;
19
19
  onProgress?: LoginProgressCallback;
20
20
  /**
21
- * Re-authorize while already authenticated. When true, login proceeds with a fresh
22
- * access request + OAuth flow even if the current status is 'authenticated'; the
23
- * callback token exchange replaces the stored tokens, so newly granted resources take
24
- * effect. Defaults to false (an authenticated session short-circuits login).
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).
25
26
  */
26
- reauthorize?: boolean;
27
+ exchange?: boolean;
27
28
  }
28
29
  export type { BrowserInfo, OSInfo } from './platform';
29
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.43",
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.43",
89
- "@bodhiapp/setup-modal-types": "0.0.43",
90
- "@bodhiapp/setup-modal-v2-types": "0.0.43",
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": {