Skip to content

Commit

Permalink
Amplify test2 (#139831)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsummers1 authored Nov 19, 2024
1 parent 893c1cf commit d5d8acc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions services/ui-src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"aws-amplify": "^6.6.4",
"date-fns": "^4.1.0",
"font-awesome": "^4.7.0",
"js-cookie": "^3.0.5",
"jsonpath": "^1.1.1",
"launchdarkly-react-client-sdk": "^3.6.0",
"mathjs": "^13.2.1",
Expand Down
2 changes: 2 additions & 0 deletions services/ui-src/src/hooks/authHooks/userProvider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { AppRoles, IdmRoles } from "../../types";
import { loadUser } from "../../actions/initial";
import { useDispatch } from "react-redux";
import config from "../../config";
import Cookies from "js-cookie";

const cartsProdDomain = "https://mdctcarts.cms.gov";
const tempEndpoint = "https://dt4brcxdimpa0.cloudfront.net";
Expand All @@ -33,6 +34,7 @@ export const UserProvider = ({ children }) => {
setUser(null);
localStorage.clear();
sessionStorage.clear();
Cookies.remove("cognito");
const url = `https://${config.cognito.APP_CLIENT_DOMAIN}/logout?client_id=${config.cognito.APP_CLIENT_ID}&logout_uri=${config.POST_SIGNOUT_REDIRECT}`;
await signOut();
// eslint-disable-next-line no-console
Expand Down

0 comments on commit d5d8acc

Please sign in to comment.