@asgardeo/javascript 0.2.6 → 0.2.8
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/api/v2/executeEmbeddedSignInFlowV2.d.ts +1 -1
- package/dist/api/v2/executeEmbeddedSignUpFlowV2.d.ts +1 -1
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.js +6 -6
- package/dist/index.js.map +2 -2
- package/dist/models/v2/embedded-signin-flow-v2.d.ts +1 -1
- package/dist/models/v2/embedded-signup-flow-v2.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2885,7 +2885,7 @@ var executeEmbeddedSignInFlowV2 = async ({
|
|
|
2885
2885
|
url,
|
|
2886
2886
|
baseUrl,
|
|
2887
2887
|
payload,
|
|
2888
|
-
|
|
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 &&
|
|
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
|
-
|
|
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
|
-
|
|
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 &&
|
|
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
|
-
|
|
3029
|
+
authId
|
|
3030
3030
|
}),
|
|
3031
3031
|
credentials: "include"
|
|
3032
3032
|
});
|