Skip to content

Commit

Permalink
Merge pull request wso2#5640 from dasuni-30/fix/22399
Browse files Browse the repository at this point in the history
Fix My Account logout issue in legacy auth runtime
  • Loading branch information
dasuni-30 authored Mar 5, 2024
2 parents d40ab29 + 4c6e95b commit 78666b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-rivers-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/myaccount": patch
---

Fix my account logout issue
8 changes: 2 additions & 6 deletions apps/myaccount/src/hooks/use-sign-in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,14 +349,10 @@ const useSignIn = (): UseSignInInterface => {
window["AppUtils"].getConfig().superTenantProxy
);
}

sessionStorage.setItem(LOGOUT_URL, logoutUrl);
} else {
logoutUrl = window["AppUtils"].getConfig().idpConfigs?.logoutEndpointURL;
logoutRedirectUrl =
window["AppUtils"].getConfig().clientOrigin + window["AppUtils"].getConfig().routes.login;
}

sessionStorage.setItem(LOGOUT_URL, logoutUrl);

getDecodedIDToken()
.then(() => {
dispatch(setSignIn<AuthenticatedUserInfo>(AuthenticateUtils.getSignInState(response)));
Expand Down

0 comments on commit 78666b9

Please sign in to comment.