@smg-automotive/auth 7.1.0-lkappeler-pass-ui-locale.2 → 8.0.0-increase-build-resources.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,7 +9,13 @@ const handleUserProfile = async ({ request, auth0Instance, auth0Config, brand, }
|
|
|
9
9
|
const session$1 = await auth0Instance.getSession(request);
|
|
10
10
|
if (!session$1) {
|
|
11
11
|
return new server.NextResponse(null, {
|
|
12
|
-
status:
|
|
12
|
+
status: 204,
|
|
13
|
+
headers: {
|
|
14
|
+
Vary: 'Cookie, Authorization',
|
|
15
|
+
'Cache-Control': 'private, no-cache, no-store, must-revalidate, max-age=0',
|
|
16
|
+
Pragma: 'no-cache',
|
|
17
|
+
Expires: '0',
|
|
18
|
+
},
|
|
13
19
|
});
|
|
14
20
|
}
|
|
15
21
|
const user = session$1.user;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.js","sources":["../../../../../src/server/middleware/profile.ts"],"sourcesContent":[null],"names":["session","NextResponse","enrichUser","addCachingHeaders"],"mappings":";;;;;;AASO,MAAM,iBAAiB,GAAG,OAAO,EACtC,OAAO,EACP,aAAa,EACb,WAAW,EACX,KAAK,GAMN,KAAkC;IACjC,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,KAAK,WAAW,CAAC,mBAAmB,EAAE;QAChE,MAAMA,SAAO,GAAG,MAAM,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC;QAEvD,IAAI,CAACA,SAAO,EAAE;AACZ,YAAA,OAAO,IAAIC,mBAAY,CAAC,IAAI,EAAE;AAC5B,gBAAA,MAAM,EAAE,GAAG;
|
|
1
|
+
{"version":3,"file":"profile.js","sources":["../../../../../src/server/middleware/profile.ts"],"sourcesContent":[null],"names":["session","NextResponse","enrichUser","addCachingHeaders"],"mappings":";;;;;;AASO,MAAM,iBAAiB,GAAG,OAAO,EACtC,OAAO,EACP,aAAa,EACb,WAAW,EACX,KAAK,GAMN,KAAkC;IACjC,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,KAAK,WAAW,CAAC,mBAAmB,EAAE;QAChE,MAAMA,SAAO,GAAG,MAAM,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC;QAEvD,IAAI,CAACA,SAAO,EAAE;AACZ,YAAA,OAAO,IAAIC,mBAAY,CAAC,IAAI,EAAE;AAC5B,gBAAA,MAAM,EAAE,GAAG;AACX,gBAAA,OAAO,EAAE;AACP,oBAAA,IAAI,EAAE,uBAAuB;AAC7B,oBAAA,eAAe,EACb,yDAAyD;AAC3D,oBAAA,MAAM,EAAE,UAAU;AAClB,oBAAA,OAAO,EAAE,GAAG;AACb,iBAAA;AACF,aAAA,CAAC;QACJ;AAEA,QAAA,MAAM,IAAI,GAAGD,SAAO,CAAC,IAAmB;AAExC,QAAA,MAAM,YAAY,GAAG,MAAME,kBAAU,CAAC;YACpC,IAAI;AACJ,YAAA,WAAW,EAAEF,SAAO,CAAC,QAAQ,CAAC,WAAW;YACzC,KAAK;AACN,SAAA,CAAC;QAEF,MAAM,YAAY,GAAGC,mBAAY,CAAC,IAAI,CAAC,YAAY,CAAC;QACpDE,mCAAiB,CAAC,YAAY,CAAC;AAC/B,QAAA,OAAO,YAAY;IACrB;AACF;;;;"}
|
|
@@ -7,7 +7,13 @@ const handleUserProfile = async ({ request, auth0Instance, auth0Config, brand, }
|
|
|
7
7
|
const session = await auth0Instance.getSession(request);
|
|
8
8
|
if (!session) {
|
|
9
9
|
return new NextResponse(null, {
|
|
10
|
-
status:
|
|
10
|
+
status: 204,
|
|
11
|
+
headers: {
|
|
12
|
+
Vary: 'Cookie, Authorization',
|
|
13
|
+
'Cache-Control': 'private, no-cache, no-store, must-revalidate, max-age=0',
|
|
14
|
+
Pragma: 'no-cache',
|
|
15
|
+
Expires: '0',
|
|
16
|
+
},
|
|
11
17
|
});
|
|
12
18
|
}
|
|
13
19
|
const user = session.user;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.js","sources":["../../../../../src/server/middleware/profile.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AASO,MAAM,iBAAiB,GAAG,OAAO,EACtC,OAAO,EACP,aAAa,EACb,WAAW,EACX,KAAK,GAMN,KAAkC;IACjC,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,KAAK,WAAW,CAAC,mBAAmB,EAAE;QAChE,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC;QAEvD,IAAI,CAAC,OAAO,EAAE;AACZ,YAAA,OAAO,IAAI,YAAY,CAAC,IAAI,EAAE;AAC5B,gBAAA,MAAM,EAAE,GAAG;
|
|
1
|
+
{"version":3,"file":"profile.js","sources":["../../../../../src/server/middleware/profile.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AASO,MAAM,iBAAiB,GAAG,OAAO,EACtC,OAAO,EACP,aAAa,EACb,WAAW,EACX,KAAK,GAMN,KAAkC;IACjC,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,KAAK,WAAW,CAAC,mBAAmB,EAAE;QAChE,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC;QAEvD,IAAI,CAAC,OAAO,EAAE;AACZ,YAAA,OAAO,IAAI,YAAY,CAAC,IAAI,EAAE;AAC5B,gBAAA,MAAM,EAAE,GAAG;AACX,gBAAA,OAAO,EAAE;AACP,oBAAA,IAAI,EAAE,uBAAuB;AAC7B,oBAAA,eAAe,EACb,yDAAyD;AAC3D,oBAAA,MAAM,EAAE,UAAU;AAClB,oBAAA,OAAO,EAAE,GAAG;AACb,iBAAA;AACF,aAAA,CAAC;QACJ;AAEA,QAAA,MAAM,IAAI,GAAG,OAAO,CAAC,IAAmB;AAExC,QAAA,MAAM,YAAY,GAAG,MAAM,UAAU,CAAC;YACpC,IAAI;AACJ,YAAA,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,WAAW;YACzC,KAAK;AACN,SAAA,CAAC;QAEF,MAAM,YAAY,GAAG,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC;QACpD,iBAAiB,CAAC,YAAY,CAAC;AAC/B,QAAA,OAAO,YAAY;IACrB;AACF;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smg-automotive/auth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-increase-build-resources.1",
|
|
4
4
|
"description": "SMG Automotive auth package",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -60,32 +60,32 @@
|
|
|
60
60
|
},
|
|
61
61
|
"homepage": "https://github.com/smg-automotive/auth-pkg#readme",
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@rollup/plugin-commonjs": "28.0.
|
|
64
|
-
"@rollup/plugin-node-resolve": "16.0.
|
|
63
|
+
"@rollup/plugin-commonjs": "28.0.8",
|
|
64
|
+
"@rollup/plugin-node-resolve": "16.0.3",
|
|
65
65
|
"@rollup/plugin-typescript": "12.1.4",
|
|
66
|
-
"@smg-automotive/eslint-config": "5.
|
|
66
|
+
"@smg-automotive/eslint-config": "5.2.0",
|
|
67
67
|
"@testing-library/dom": "10.4.1",
|
|
68
|
-
"@testing-library/jest-dom": "6.
|
|
68
|
+
"@testing-library/jest-dom": "6.9.1",
|
|
69
69
|
"@testing-library/react": "16.3.0",
|
|
70
70
|
"@testing-library/user-event": "14.6.1",
|
|
71
|
-
"@types/react": "19.
|
|
72
|
-
"dotenv": "17.2.
|
|
71
|
+
"@types/react": "19.2.2",
|
|
72
|
+
"dotenv": "17.2.3",
|
|
73
73
|
"jest": "30.0.5",
|
|
74
74
|
"jest-environment-jsdom": "30.0.5",
|
|
75
75
|
"jest-fetch-mock": "3.0.3",
|
|
76
76
|
"next": "15.5.0",
|
|
77
|
-
"react": "19.
|
|
78
|
-
"react-dom": "19.
|
|
77
|
+
"react": "19.2.0",
|
|
78
|
+
"react-dom": "19.2.0",
|
|
79
79
|
"rimraf": "6.0.1",
|
|
80
|
-
"rollup": "4.52.
|
|
80
|
+
"rollup": "4.52.5",
|
|
81
81
|
"rollup-plugin-dts": "6.2.3",
|
|
82
82
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
83
83
|
"rollup-plugin-preserve-directives": "0.4.0",
|
|
84
84
|
"semantic-release": "24.2.9",
|
|
85
85
|
"swr": "2.3.6",
|
|
86
|
-
"ts-jest": "29.4.
|
|
86
|
+
"ts-jest": "29.4.5",
|
|
87
87
|
"ts-node": "10.9.2",
|
|
88
|
-
"typescript": "5.9.
|
|
88
|
+
"typescript": "5.9.3",
|
|
89
89
|
"whatwg-fetch": "3.6.20"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|