@driveflux/auth 4.0.33 → 4.0.35

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.
@@ -13,7 +13,8 @@ const corsOptions = {
13
13
  },
14
14
  allowedHeaders: [
15
15
  'content-type',
16
- 'x-correlation-id'
16
+ 'x-correlation-id',
17
+ 'authorization'
17
18
  ],
18
19
  exposedHeaders: '*',
19
20
  methods: [
@@ -361,7 +361,7 @@ export declare const authOptions: {
361
361
  readonly sameSite: "lax";
362
362
  readonly path: "/";
363
363
  readonly secure: boolean;
364
- readonly domain: string;
364
+ readonly domain: string | undefined;
365
365
  };
366
366
  };
367
367
  readonly callbackUrl: {
@@ -181,7 +181,7 @@ export const authOptions = {
181
181
  sameSite: 'lax',
182
182
  path: '/',
183
183
  secure: useSecureCookies,
184
- domain: nextAuthUrl === 'localhost' ? `.${nextAuthUrl}` : `.${new URL(nextAuthUrl).hostname}`
184
+ domain: process.env.NO_COOKIE_DOMAIN === 'true' ? undefined : nextAuthUrl === 'localhost' ? `.${nextAuthUrl}` : `.${new URL(nextAuthUrl).hostname}`
185
185
  }
186
186
  },
187
187
  callbackUrl: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driveflux/auth",
3
- "version": "4.0.33",
3
+ "version": "4.0.35",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -75,7 +75,7 @@
75
75
  "@casl/ability": "^6.7.3",
76
76
  "@casl/prisma": "^1.5.2",
77
77
  "@driveflux/config": "3.0.3",
78
- "@driveflux/db": "4.0.3",
78
+ "@driveflux/db": "4.0.4",
79
79
  "@driveflux/fetch": "8.0.0",
80
80
  "@driveflux/problem": "6.0.0",
81
81
  "@driveflux/reporter": "7.0.1",