Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Kjører keydownlistener kun én gang ved utloggingsvarsel.
Browse files Browse the repository at this point in the history
  • Loading branch information
terjeofnorway committed Dec 19, 2023
1 parent 4d69110 commit 73c9f79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ XP_BASE_URL=https://www.nav.no
APP_BASE_URL=http://localhost:8088
APP_BASE_PATH=/dekoratoren
API_XP_SERVICES_URL=https://www.nav.no/_/service
API_DEKORATOREN_URL=http://localhost:8095/nav-dekoratoren-api
API_DEKORATOREN_URL=http://localhost:8088/dekoratoren/api
MINSIDE_ARBEIDSGIVER_URL=https://arbeidsgiver.nav.no/min-side-arbeidsgiver/
MIN_SIDE_URL=https:/www.nav.no/minside/
LOGIN_URL=http://localhost:50000
Expand Down
2 changes: 1 addition & 1 deletion src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const hentInnloggingsstatusFetch = (environment: Environment): Promise<In
const { API_DEKORATOREN_URL, ENV } = environment;

const sessionUrl =
ENV === 'prod' ? `https://login.nav.no/oauth2/session` : `https://login.ekstern.dev.nav.no/oauth2/session`;
ENV === 'prod' ? `https://login.nav.no/oauth2/session` : `http://localhost:8088/api/oauth2/session`;

const innloggingsstatusResult: Promise<InnloggingsstatusData> = fetchToJson(`${API_DEKORATOREN_URL}/auth`, {
credentials: 'include',
Expand Down
2 changes: 1 addition & 1 deletion src/komponenter/header/logoutWarning/LogoutWarning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const LogoutWarning = () => {
return () => {
window.removeEventListener('keydown', onKeydownHandler);
};
}, [dialogRef.current]);
}, []);

useEffect(() => {
if (isTokenExpiring || isSessionExpiring) {
Expand Down

0 comments on commit 73c9f79

Please sign in to comment.