@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.
package/dist/index.js CHANGED
@@ -2885,7 +2885,7 @@ var executeEmbeddedSignInFlowV2 = async ({
2885
2885
  url,
2886
2886
  baseUrl,
2887
2887
  payload,
2888
- sessionDataKey,
2888
+ authId,
2889
2889
  ...requestConfig
2890
2890
  }) => {
2891
2891
  if (!payload) {
@@ -2919,7 +2919,7 @@ var executeEmbeddedSignInFlowV2 = async ({
2919
2919
  );
2920
2920
  }
2921
2921
  const flowResponse = await response.json();
2922
- if (flowResponse.flowStatus === "COMPLETE" /* Complete */ && flowResponse.assertion && sessionDataKey) {
2922
+ if (flowResponse.flowStatus === "COMPLETE" /* Complete */ && flowResponse.assertion && authId) {
2923
2923
  try {
2924
2924
  const oauth2Response = await fetch(`${baseUrl}/oauth2/authorize`, {
2925
2925
  method: "POST",
@@ -2930,7 +2930,7 @@ var executeEmbeddedSignInFlowV2 = async ({
2930
2930
  },
2931
2931
  body: JSON.stringify({
2932
2932
  assertion: flowResponse.assertion,
2933
- sessionDataKey
2933
+ authId
2934
2934
  }),
2935
2935
  credentials: "include"
2936
2936
  });
@@ -2981,7 +2981,7 @@ var executeEmbeddedSignUpFlowV2 = async ({
2981
2981
  url,
2982
2982
  baseUrl,
2983
2983
  payload,
2984
- sessionDataKey,
2984
+ authId,
2985
2985
  ...requestConfig
2986
2986
  }) => {
2987
2987
  if (!payload) {
@@ -3015,7 +3015,7 @@ var executeEmbeddedSignUpFlowV2 = async ({
3015
3015
  );
3016
3016
  }
3017
3017
  const flowResponse = await response.json();
3018
- if (flowResponse.flowStatus === "COMPLETE" /* Complete */ && flowResponse.assertion && sessionDataKey) {
3018
+ if (flowResponse.flowStatus === "COMPLETE" /* Complete */ && flowResponse.assertion && authId) {
3019
3019
  try {
3020
3020
  const oauth2Response = await fetch(`${baseUrl}/oauth2/authorize`, {
3021
3021
  method: "POST",
@@ -3026,7 +3026,7 @@ var executeEmbeddedSignUpFlowV2 = async ({
3026
3026
  },
3027
3027
  body: JSON.stringify({
3028
3028
  assertion: flowResponse.assertion,
3029
- sessionDataKey
3029
+ authId
3030
3030
  }),
3031
3031
  credentials: "include"
3032
3032
  });