Skip to content

Commit 59d9f26

Browse files
Update dependencies
1 parent b5ca0ac commit 59d9f26

File tree

6 files changed

+24
-32
lines changed

6 files changed

+24
-32
lines changed

frontend/bun.lockb

-5.3 KB
Binary file not shown.

frontend/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,33 @@
1313
"lint": "biome check"
1414
},
1515
"devDependencies": {
16-
"@types/bun": "1.1.13",
16+
"@types/bun": "1.1.14",
1717
"@types/react": "18.3.12",
1818
"@types/react-dom": "18.3.1",
1919
"@types/react-redux": "7.1.34",
20-
"@vitejs/plugin-react": "4.3.3",
21-
"typescript": "5.6.3",
22-
"vite": "5.4.10",
23-
"vite-tsconfig-paths": "5.1.0"
20+
"@vitejs/plugin-react": "4.3.4",
21+
"typescript": "5.7.2",
22+
"vite": "6.0.1",
23+
"vite-tsconfig-paths": "5.1.3"
2424
},
2525
"dependencies": {
2626
"@biomejs/biome": "1.9.4",
27-
"@grafana/faro-react": "1.11.0",
28-
"@grafana/faro-web-sdk": "1.11.0",
29-
"@grafana/faro-web-tracing": "1.11.0",
30-
"@navikt/aksel-icons": "7.5.1",
31-
"@navikt/ds-css": "7.5.1",
32-
"@navikt/ds-react": "7.5.1",
33-
"@navikt/fnrvalidator": "2.1.2",
27+
"@grafana/faro-react": "1.12.2",
28+
"@grafana/faro-web-sdk": "1.12.2",
29+
"@grafana/faro-web-tracing": "1.12.2",
30+
"@navikt/aksel-icons": "7.5.3",
31+
"@navikt/ds-css": "7.5.3",
32+
"@navikt/ds-react": "7.5.3",
33+
"@navikt/fnrvalidator": "2.1.5",
3434
"@navikt/nav-dekoratoren-moduler": "3.1.1",
3535
"@reduxjs/toolkit": "2.3.0",
3636
"@styled-icons/material": "10.47.0",
3737
"date-fns": "4.1.0",
3838
"react": "18.3.1",
3939
"react-dom": "18.3.1",
4040
"react-redux": "9.1.2",
41-
"react-router": "6.28.0",
42-
"react-router-dom": "6.28.0",
41+
"react-router": "7.0.1",
42+
"react-router-dom": "7.0.1",
4343
"styled-components": "6.1.13"
4444
}
4545
}

server/bun.lockb

1 Byte
Binary file not shown.

server/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@
1414
},
1515
"dependencies": {
1616
"@fastify/cors": "10.0.1",
17-
"@fastify/http-proxy": "10.0.1",
17+
"@fastify/http-proxy": "10.0.2",
1818
"@fastify/type-provider-typebox": "5.0.1",
1919
"fastify": "5.1.0",
2020
"fastify-metrics": "12.1.0",
21-
"happy-dom": "15.11.0",
22-
"jose": "5.8.0",
23-
"openid-client": "5.6.5",
21+
"happy-dom": "15.11.7",
22+
"jose": "5.9.6",
23+
"openid-client": "5.7.1",
2424
"prom-client": "15.1.3",
2525
"redis": "4.7.0"
2626
},
2727
"devDependencies": {
2828
"@biomejs/biome": "1.9.4",
29-
"@types/bun": "1.1.13",
30-
"@types/node": "22.9.0",
29+
"@types/bun": "1.1.14",
30+
"@types/node": "22.10.1",
3131
"tsc-alias": "1.8.10",
32-
"typescript": "5.6.3"
32+
"typescript": "5.7.2"
3333
}
3434
}

server/src/auth/token-x-client.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TOKEN_X_CLIENT_ID, TOKEN_X_PRIVATE_JWK, TOKEN_X_WELL_KNOWN_URL } from '@app/config/config';
1+
import { TOKEN_X_CLIENT_ID, TOKEN_X_WELL_KNOWN_URL } from '@app/config/config';
22
import { isLocal } from '@app/config/env';
33
import { getLogger } from '@app/logger';
44
import { type BaseClient, Issuer } from 'openid-client';
@@ -15,12 +15,7 @@ export const getTokenXClient = async (retries = 3): Promise<BaseClient> => {
1515
try {
1616
const issuer = await Issuer.discover(TOKEN_X_WELL_KNOWN_URL);
1717

18-
const keys = [TOKEN_X_PRIVATE_JWK];
19-
20-
tokenXInstance = new issuer.Client(
21-
{ client_id: TOKEN_X_CLIENT_ID, token_endpoint_auth_method: 'private_key_jwt' },
22-
{ keys },
23-
);
18+
tokenXInstance = new issuer.Client({ client_id: TOKEN_X_CLIENT_ID, token_endpoint_auth_method: 'private_key_jwt' });
2419

2520
return tokenXInstance;
2621
} catch (error) {

server/src/config/config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import path from 'node:path';
2-
import { requiredEnvJson, requiredEnvNumber, requiredEnvString } from '@app/config/env-var';
3-
import type { JWK } from 'jose';
2+
import { requiredEnvNumber, requiredEnvString } from '@app/config/env-var';
43

54
export const API_CLIENT_IDS = ['klage-dittnav-api', 'klage-kodeverk-api'];
65

@@ -14,10 +13,8 @@ export const NAIS_CLUSTER_NAME = requiredEnvString('NAIS_CLUSTER_NAME');
1413
const isLocal = NAIS_CLUSTER_NAME === 'local';
1514

1615
const defaultValue = isLocal ? 'local' : undefined;
17-
const localJwk: JWK = {};
1816

1917
export const TOKEN_X_CLIENT_ID = requiredEnvString('TOKEN_X_CLIENT_ID', defaultValue);
2018
export const TOKEN_X_WELL_KNOWN_URL = requiredEnvString('TOKEN_X_WELL_KNOWN_URL', defaultValue);
21-
export const TOKEN_X_PRIVATE_JWK = requiredEnvJson<JWK>('TOKEN_X_PRIVATE_JWK', localJwk);
2219
export const PROXY_VERSION = requiredEnvString('VERSION', defaultValue);
2320
export const PORT = requiredEnvNumber('PORT', 8080);

0 commit comments

Comments
 (0)