Skip to content

Commit

Permalink
Merge pull request #268 from piyushyadav1617/dev-branch
Browse files Browse the repository at this point in the history
updates newApssRequest function in profile
  • Loading branch information
moonlightnexus authored Feb 1, 2024
2 parents 8fd38ca + 54c0995 commit b35f535
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/app/widget/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/app/widget/profile/SecurityTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export default function Security() {
},
body: JSON.stringify({
usr: {
new_user_password: pass
forget_password: pass
},
UserTokenBody: {
UserToken: user_token
Expand Down
2 changes: 1 addition & 1 deletion src/app/widget/profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
);
}

Expand Down

0 comments on commit b35f535

Please sign in to comment.