@microsoft/rayfin-client 1.34.0-alpha.1148 → 1.34.0-beta.0

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/dist/client.d.ts CHANGED
@@ -30,6 +30,12 @@ export interface RayfinClientConfig extends ApiClientConfig {
30
30
  * You may also provide your own storage or use browser's built-in Session Storage
31
31
  */
32
32
  authStorage?: AuthStorage | boolean;
33
+ /** When false, all storage I/O is skipped — pure in-memory session. Default: true */
34
+ persistSession?: boolean;
35
+ /** When false, session expiration timers are not scheduled and automatic refresh on 401 is disabled. Default: true */
36
+ autoRefreshToken?: boolean;
37
+ /** When false, StorageEvent listener is not registered. Default: auto-detected (true in browser with localStorage). */
38
+ multiTabSync?: boolean;
33
39
  }
34
40
  /**
35
41
  * Configuration for the server/worker-oriented {@link RayfinServerClient}.
package/dist/client.js CHANGED
@@ -100,7 +100,12 @@ export class RayfinClient extends RayfinClientBase {
100
100
  */
101
101
  constructor(config) {
102
102
  super(config);
103
- this.auth = new Auth(this.apiClient, { storage: config.authStorage });
103
+ this.auth = new Auth(this.apiClient, {
104
+ storage: config.authStorage,
105
+ persistSession: config.persistSession,
106
+ autoRefreshToken: config.autoRefreshToken,
107
+ multiTabSync: config.multiTabSync,
108
+ });
104
109
  this.auth.attachToClient(this.apiClient);
105
110
  this.functions = createFunctionsApi(this.apiClient);
106
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/rayfin-client",
3
- "version": "1.34.0-alpha.1148",
3
+ "version": "1.34.0-beta.0",
4
4
  "description": "Main client SDK for Rayfin services",
5
5
  "type": "module",
6
6
  "exports": {
@@ -21,11 +21,11 @@
21
21
  "assets/docs"
22
22
  ],
23
23
  "dependencies": {
24
- "@microsoft/rayfin-auth": "1.34.0-alpha.1148",
25
- "@microsoft/rayfin-connectors": "1.34.0-alpha.1148",
26
- "@microsoft/rayfin-data": "1.34.0-alpha.1148",
27
- "@microsoft/rayfin-lib": "1.34.0-alpha.1148",
28
- "@microsoft/rayfin-functions": "1.34.0-alpha.1148"
24
+ "@microsoft/rayfin-auth": "1.34.0-beta.0",
25
+ "@microsoft/rayfin-connectors": "1.34.0-beta.0",
26
+ "@microsoft/rayfin-data": "1.34.0-beta.0",
27
+ "@microsoft/rayfin-lib": "1.34.0-beta.0",
28
+ "@microsoft/rayfin-functions": "1.34.0-beta.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "^5.8.3",