diff --git a/.circleci/config.yml b/.circleci/config.yml index ebc7d22a4f..e5cc24d1c7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -109,7 +109,7 @@ parameters: default: "main" type: string sandbox_git_branch: # change to feature branch to test deployment - default: "js-79-logout-on-inactive" + default: "js-79-pr-feedback" type: string jobs: build: diff --git a/frontend/.env b/frontend/.env index 5162752017..bfb2844e85 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1,3 +1,3 @@ BACKEND_PROXY=http://localhost:8080 -REACT_APP_INACTIVE_MODAL_TIMEOUT=60000 -REACT_APP_SESSION_TIMEOUT=120000 +REACT_APP_INACTIVE_MODAL_TIMEOUT=1500000 +REACT_APP_SESSION_TIMEOUT=1800000 diff --git a/frontend/README.md b/frontend/README.md index be07317cdc..9fd62e23de 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -18,6 +18,13 @@ There are yarn commands for starting/testing/linting the frontend defined a dire | `yarn lint` | Run the linter | | `yarn lint:ci` | Run the linter outputting results to xml files | +## Build Environment Variables + +| Variable | Description | +|-|-| +| `REACT_APP_INACTIVE_MODAL_TIMEOUT` | Amount of time before the "Idle Logout" modal is shown to a user, in milliseconds | +| `REACT_APP_SESSION_TIMEOUT` | Amount of time before an inactive user is automatically logged out | + ## Create React App This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). diff --git a/frontend/src/components/IdleModal.js b/frontend/src/components/IdleModal.js index 50b3fe4cd3..5c25e0deb6 100644 --- a/frontend/src/components/IdleModal.js +++ b/frontend/src/components/IdleModal.js @@ -56,6 +56,9 @@ function IdleModal({ modalTimeout, logoutTimeout, logoutUser }) { { timeToLogoutMsg } {' '} unless you become active again. + + Press any key to continue your session + ));