Skip to content

Commit

Permalink
actually include the change, dummy
Browse files Browse the repository at this point in the history
  • Loading branch information
zburke committed Jul 15, 2024
1 parent 0f52091 commit 2d091ee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/Root/token-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { RTRError, UnexpectedResourceError } from './Errors';
import {
RTR_ACTIVITY_EVENTS,
RTR_ERROR_EVENT,
RTR_FLS_WARNING_TTL,

Check failure on line 8 in src/components/Root/token-util.js

View workflow job for this annotation

GitHub Actions / ui / Install and lint / Install and lint

RTR_FLS_WARNING_TTL not found in './constants'

Check failure on line 8 in src/components/Root/token-util.js

View workflow job for this annotation

GitHub Actions / ui / Install and lint / Install and lint

RTR_FLS_WARNING_TTL not found in './constants'
RTR_IDLE_MODAL_TTL,
RTR_IDLE_SESSION_TTL,
RTR_SUCCESS_EVENT,
Expand Down Expand Up @@ -74,6 +75,7 @@ export const isAuthenticationRequest = (resource, oUrl) => {
'/authn/token',
'/bl-users/login-with-expiry',
'/bl-users/_self',
'/users-keycloak/_self',
];

return !!permissible.find(i => string.startsWith(`${oUrl}${i}`));
Expand Down Expand Up @@ -325,5 +327,11 @@ export const configureRtr = (config = {}) => {
conf.activityEvents = RTR_ACTIVITY_EVENTS;
}

// how long is the "your session is gonna die!" warning shown
// before the session is, in fact, killed?
if (!conf.fixedSessionWarningTTL) {
conf.fixedSessionWarningTTL = RTR_FLS_WARNING_TTL;
}

return conf;
};

0 comments on commit 2d091ee

Please sign in to comment.