Skip to content

Commit 320e193

Browse files
committed
remove jwt override and update tsconfig
1 parent 50d736f commit 320e193

2 files changed

Lines changed: 4 additions & 28 deletions

File tree

application/CohortManager/src/Web/app/types/auth/index.d.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type { DefaultSession } from "next-auth";
2-
31
declare module "next-auth" {
42
interface User {
53
uid: string;
@@ -12,28 +10,6 @@ declare module "next-auth" {
1210
workgroups?: string[];
1311
workgroups_codes?: string[];
1412
}
15-
16-
interface Session {
17-
user?: DefaultSession["user"] & User;
18-
accessToken?: string;
19-
idToken?: string;
20-
}
21-
}
22-
23-
declare module "next-auth/jwt" {
24-
interface JWT {
25-
uid?: string;
26-
firstName?: string;
27-
lastName?: string;
28-
sub?: string;
29-
sid?: string;
30-
odsCode?: string;
31-
orgName?: string;
32-
workgroups?: string[];
33-
workgroups_codes?: string[];
34-
accessToken?: string;
35-
idToken?: string;
36-
}
3713
}
3814

3915
export interface DecodedCIS2Token {

application/CohortManager/src/Web/tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "ES2017",
44
"lib": [
55
"dom",
66
"dom.iterable",
@@ -12,11 +12,11 @@
1212
"forceConsistentCasingInFileNames": true,
1313
"noEmit": true,
1414
"esModuleInterop": true,
15-
"module": "commonjs",
16-
"moduleResolution": "node",
15+
"module": "ESNext",
16+
"moduleResolution": "bundler",
1717
"resolveJsonModule": true,
1818
"isolatedModules": true,
19-
"jsx": "react-jsx",
19+
"jsx": "preserve",
2020
"incremental": true,
2121
"plugins": [
2222
{

0 commit comments

Comments
 (0)