hazo_auth 5.1.14 → 5.1.15
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.
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
// section: imports
|
|
3
3
|
import type { AuthOptions, Session } from "next-auth";
|
|
4
4
|
import type { JWT } from "next-auth/jwt";
|
|
5
|
-
|
|
5
|
+
// ESM/CJS interop: next-auth providers are CommonJS, handle both export scenarios
|
|
6
|
+
import GoogleProviderImport from "next-auth/providers/google";
|
|
7
|
+
const GoogleProvider = (GoogleProviderImport as any).default || GoogleProviderImport;
|
|
6
8
|
import { get_oauth_config } from "../oauth_config.server.js";
|
|
7
9
|
import { handle_google_oauth_login } from "../services/oauth_service.js";
|
|
8
10
|
import { get_hazo_connect_instance } from "../hazo_connect_instance.server.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextauth_config.d.ts","sourceRoot":"","sources":["../../../src/lib/auth/nextauth_config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAW,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"nextauth_config.d.ts","sourceRoot":"","sources":["../../../src/lib/auth/nextauth_config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAW,MAAM,WAAW,CAAC;AAWtD,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAGF;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,WAAW,CAwKjD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAW7C"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// ESM/CJS interop: next-auth providers are CommonJS, handle both export scenarios
|
|
2
|
+
import GoogleProviderImport from "next-auth/providers/google";
|
|
3
|
+
const GoogleProvider = GoogleProviderImport.default || GoogleProviderImport;
|
|
2
4
|
import { get_oauth_config } from "../oauth_config.server.js";
|
|
3
5
|
import { handle_google_oauth_login } from "../services/oauth_service.js";
|
|
4
6
|
import { get_hazo_connect_instance } from "../hazo_connect_instance.server.js";
|
package/package.json
CHANGED