diff --git a/src/app/widget/login/page.tsx b/src/app/widget/login/page.tsx index c215b1e..52664ed 100644 --- a/src/app/widget/login/page.tsx +++ b/src/app/widget/login/page.tsx @@ -700,9 +700,15 @@ export default function Widget() { try { //get the user response which has a user token and public details const response = await fetch( - `https://api.trustauthx.com/user/me/auth?usr=${email}&OrgToken=${storeOrg_token}`, + `https://api.trustauthx.com/user/me/auth/v2?usr=${email}`, { - method: 'GET' + method: 'POST', + headers: { + 'Content-Type': 'application/json' + }, + body: JSON.stringify({ + OrgToken: storeOrg_token + }) } ); // console.log(response) diff --git a/src/app/widget/profile/SecurityTab.tsx b/src/app/widget/profile/SecurityTab.tsx index 6a69c50..dd8f475 100644 --- a/src/app/widget/profile/SecurityTab.tsx +++ b/src/app/widget/profile/SecurityTab.tsx @@ -287,7 +287,7 @@ export default function Security() { }, body: JSON.stringify({ usr: { - new_user_password: pass + forget_password: pass }, UserTokenBody: { UserToken: user_token diff --git a/src/app/widget/profile/page.tsx b/src/app/widget/profile/page.tsx index 191b25b..c6f3744 100644 --- a/src/app/widget/profile/page.tsx +++ b/src/app/widget/profile/page.tsx @@ -178,7 +178,7 @@ export default function WidgetProfile() { token = (await getToken()) ?? user_token; } return router.push( - `https://api.trustauthx.com/user/me/widget/settings?code=${code}&UserToken=${token}&redirect_url=${redirect_url}` + `https://api.trustauthx.com/user/me/widget/settings/?code=${code}&UserToken=${token}&redirect_url=${redirect_url}` ); }