@asgardeo/javascript 0.8.3 → 0.9.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.
@@ -116,6 +116,23 @@ export interface BaseConfig<T = unknown> extends WithPreferences {
116
116
  * Use this when you need multiple authentication contexts in the same application.
117
117
  */
118
118
  instanceId?: number;
119
+ /**
120
+ * Configuration for chaining authentication across multiple organization contexts.
121
+ * Used when you need to authenticate a user in one organization using credentials
122
+ * from another organization context.
123
+ */
124
+ organizationChain?: {
125
+ /**
126
+ * Instance ID of the source organization context to retrieve access token from for organization token exchange.
127
+ * Used in linked organization scenarios to automatically fetch the source organization's access token.
128
+ */
129
+ sourceInstanceId?: number;
130
+ /**
131
+ * Organization ID for the target organization.
132
+ * When provided with sourceInstanceId, triggers automatic organization token exchange.
133
+ */
134
+ targetOrganizationId?: string;
135
+ };
119
136
  /**
120
137
  * Optional organization handle for the Organization in Asgardeo.
121
138
  * This is used to identify the organization in the Asgardeo identity server in cases like Branding, etc.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/javascript",
3
- "version": "0.8.3",
3
+ "version": "0.9.0",
4
4
  "description": "Framework agnostic JavaScript SDK for Asgardeo.",
5
5
  "keywords": [
6
6
  "asgardeo",