@asgardeo/javascript 0.2.7 → 0.2.9

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.
@@ -16,5 +16,5 @@
16
16
  * under the License.
17
17
  */
18
18
  import { EmbeddedFlowExecuteRequestConfigV2, EmbeddedSignInFlowResponseV2 } from '../../models/v2/embedded-signin-flow-v2';
19
- declare const executeEmbeddedSignInFlowV2: ({ url, baseUrl, payload, sessionDataKey, ...requestConfig }: EmbeddedFlowExecuteRequestConfigV2) => Promise<EmbeddedSignInFlowResponseV2>;
19
+ declare const executeEmbeddedSignInFlowV2: ({ url, baseUrl, payload, authId, ...requestConfig }: EmbeddedFlowExecuteRequestConfigV2) => Promise<EmbeddedSignInFlowResponseV2>;
20
20
  export default executeEmbeddedSignInFlowV2;
@@ -16,5 +16,5 @@
16
16
  * under the License.
17
17
  */
18
18
  import { EmbeddedFlowExecuteRequestConfigV2, EmbeddedSignUpFlowResponseV2 } from '../../models/v2/embedded-signup-flow-v2';
19
- declare const executeEmbeddedSignUpFlowV2: ({ url, baseUrl, payload, sessionDataKey, ...requestConfig }: EmbeddedFlowExecuteRequestConfigV2) => Promise<EmbeddedSignUpFlowResponseV2>;
19
+ declare const executeEmbeddedSignUpFlowV2: ({ url, baseUrl, payload, authId, ...requestConfig }: EmbeddedFlowExecuteRequestConfigV2) => Promise<EmbeddedSignUpFlowResponseV2>;
20
20
  export default executeEmbeddedSignUpFlowV2;
package/dist/cjs/index.js CHANGED
@@ -2990,7 +2990,7 @@ var executeEmbeddedSignInFlowV2 = async ({
2990
2990
  url,
2991
2991
  baseUrl,
2992
2992
  payload,
2993
- sessionDataKey,
2993
+ authId,
2994
2994
  ...requestConfig
2995
2995
  }) => {
2996
2996
  if (!payload) {
@@ -3024,7 +3024,7 @@ var executeEmbeddedSignInFlowV2 = async ({
3024
3024
  );
3025
3025
  }
3026
3026
  const flowResponse = await response.json();
3027
- if (flowResponse.flowStatus === "COMPLETE" /* Complete */ && flowResponse.assertion && sessionDataKey) {
3027
+ if (flowResponse.flowStatus === "COMPLETE" /* Complete */ && flowResponse.assertion && authId) {
3028
3028
  try {
3029
3029
  const oauth2Response = await fetch(`${baseUrl}/oauth2/authorize`, {
3030
3030
  method: "POST",
@@ -3035,7 +3035,7 @@ var executeEmbeddedSignInFlowV2 = async ({
3035
3035
  },
3036
3036
  body: JSON.stringify({
3037
3037
  assertion: flowResponse.assertion,
3038
- sessionDataKey
3038
+ authId
3039
3039
  }),
3040
3040
  credentials: "include"
3041
3041
  });
@@ -3086,7 +3086,7 @@ var executeEmbeddedSignUpFlowV2 = async ({
3086
3086
  url,
3087
3087
  baseUrl,
3088
3088
  payload,
3089
- sessionDataKey,
3089
+ authId,
3090
3090
  ...requestConfig
3091
3091
  }) => {
3092
3092
  if (!payload) {
@@ -3120,7 +3120,7 @@ var executeEmbeddedSignUpFlowV2 = async ({
3120
3120
  );
3121
3121
  }
3122
3122
  const flowResponse = await response.json();
3123
- if (flowResponse.flowStatus === "COMPLETE" /* Complete */ && flowResponse.assertion && sessionDataKey) {
3123
+ if (flowResponse.flowStatus === "COMPLETE" /* Complete */ && flowResponse.assertion && authId) {
3124
3124
  try {
3125
3125
  const oauth2Response = await fetch(`${baseUrl}/oauth2/authorize`, {
3126
3126
  method: "POST",
@@ -3131,7 +3131,7 @@ var executeEmbeddedSignUpFlowV2 = async ({
3131
3131
  },
3132
3132
  body: JSON.stringify({
3133
3133
  assertion: flowResponse.assertion,
3134
- sessionDataKey
3134
+ authId
3135
3135
  }),
3136
3136
  credentials: "include"
3137
3137
  });