@asgardeo/javascript 0.10.2 → 0.11.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.
@@ -314,6 +314,27 @@ export interface I18nPreferences {
314
314
  */
315
315
  urlParam?: string | false;
316
316
  }
317
+ export interface UserPreferences {
318
+ /**
319
+ * Whether to automatically fetch the user's associated organizations after sign-in.
320
+ * When set to false, the SDK will not make API calls to `/api/users/v1/me/organizations`.
321
+ * @default true
322
+ * @remarks Disabling this will improve performance if you don't need organization information.
323
+ * You can manually call `getMyOrganizations()` when needed if this is disabled.
324
+ */
325
+ fetchOrganizations?: boolean;
326
+ /**
327
+ * Whether to automatically fetch the user profile from SCIM2 endpoints after sign-in.
328
+ * When set to false, the SDK will not make API calls to `/scim2/Me` and `/scim2/Schemas`.
329
+ * Instead, it will extract basic user claims from the ID token.
330
+ * @default true
331
+ * @remarks Disabling this will improve performance but provide limited user profile information.
332
+ * Only the claims present in the ID token will be available (e.g., sub, email, name).
333
+ * For full user profile attributes (custom claims, enterprise attributes, etc.),
334
+ * keep this enabled or manually call `getUserProfile()` when needed.
335
+ */
336
+ fetchUserProfile?: boolean;
337
+ }
317
338
  export interface Preferences {
318
339
  /**
319
340
  * Internationalization preferences for the Asgardeo UI components
@@ -328,4 +349,10 @@ export interface Preferences {
328
349
  * Theme preferences for the Asgardeo UI components
329
350
  */
330
351
  theme?: ThemePreferences;
352
+ /**
353
+ * User profile preferences for controlling user data fetching behavior.
354
+ * TEMPORARY CONFIG
355
+ * TODO: Remove this once https://github.com/asgardeo/javascript/issues/412 is properly fixed.
356
+ */
357
+ user?: UserPreferences;
331
358
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/javascript",
3
- "version": "0.10.2",
3
+ "version": "0.11.0",
4
4
  "description": "Framework agnostic JavaScript SDK for Asgardeo.",
5
5
  "keywords": [
6
6
  "asgardeo",