Closed Vandivier closed 2 weeks ago
@Vandivier apologies about the delay in responding
There is no current way of getting next-auth
working without a manual patch. I am working on checking for a fix, but more monkey patching will not be solution, until the next-auth team allows more internal exports
This patch or the exports in these files are needed for the social sign in to work.
diff --git a/package.json b/package.json
index c89e03c41a03de738cfb0ad090a63c2e99dadc7b..a5f38083c24732651c427c2b2d17cbcb23495473 100644
--- a/package.json
+++ b/package.json
@@ -57,6 +57,18 @@
"./providers/*": {
"types": "./providers/*.d.ts",
"default": "./providers/*.js"
+ },
+ "./core/init": {
+ "types": "./core/init.d.ts",
+ "default": "./core/init.js"
+ },
+ "./core/lib/oauth/authorization-url": {
+ "types": "./core/lib/oauth/authorization-url.d.ts",
+ "default": "./core/lib/oauth/authorization-url.js"
+ },
+ "./core/lib/oauth/callback": {
+ "types": "./core/lib/oauth/callback.d.ts",
+ "default": "./core/lib/oauth/callback.js"
}
},
"files": [
What is the problem?
When I wrap my Next.js config with
withNextAuthAdapter
as instructed, I see the following error on server startup (via npm run dev ieblitz dev
):Paste all your error logs here:
Paste all relevant code snippets here:
n/a
What are detailed steps to reproduce this?
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
some other useful dep versions: