Skip to content

Commit

Permalink
Merge pull request #3547 from nationalarchives/TDR-3571-rollback-user…
Browse files Browse the repository at this point in the history
…-session-timeout-increase

Reset user session timeout to 1 hour
  • Loading branch information
TomJKing authored Dec 15, 2023
2 parents e1f890b + 2eca8d5 commit c40284f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion npm/src/auth/session-timeout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const showModal = async (keycloak: Keycloak): Promise<void> => {

const refreshToken = async (keycloak: Keycloak): Promise<void> => {
//Set min validity to the length of the access token, so it will always get a new one.
const minValiditySec = 18000 //temp increase in user session timeout to 5 hours for TDR-3571
const minValiditySec = 3600
const errorHandlingModule = await import("../errorhandling")
if (!errorHandlingModule.isError(keycloak)) {
const updateSuccessful = await keycloak.updateToken(minValiditySec)
Expand Down

0 comments on commit c40284f

Please sign in to comment.