@asgardeo/javascript 0.6.0 → 0.7.1

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
@@ -2938,7 +2938,7 @@ var executeEmbeddedSignInFlowV2 = async ({
2938
2938
  const flowResponse = await response.json();
2939
2939
  if (flowResponse.flowStatus === "COMPLETE" /* Complete */ && flowResponse.assertion && authId) {
2940
2940
  try {
2941
- const oauth2Response = await fetch(`${baseUrl}/oauth2/authorize`, {
2941
+ const oauth2Response = await fetch(`${baseUrl}/oauth2/auth/callback`, {
2942
2942
  method: "POST",
2943
2943
  headers: {
2944
2944
  "Content-Type": "application/json",
@@ -3038,7 +3038,7 @@ var executeEmbeddedSignUpFlowV2 = async ({
3038
3038
  const flowResponse = await response.json();
3039
3039
  if (flowResponse.flowStatus === "COMPLETE" /* Complete */ && flowResponse.assertion && authId) {
3040
3040
  try {
3041
- const oauth2Response = await fetch(`${baseUrl}/oauth2/authorize`, {
3041
+ const oauth2Response = await fetch(`${baseUrl}/oauth2/auth/callback`, {
3042
3042
  method: "POST",
3043
3043
  headers: {
3044
3044
  "Content-Type": "application/json",