Question about NextAuth.js + Electron #6445
Replies: 4 comments 2 replies
-
Hey did you ever get to integrate nextauth with nextron, cus I am currently struggling with it. I keep on getting require is not defined in my code, even though I am not using require anywhere in my code. This only happens when I wrap SessionProvider from nextauth around my app. Help? |
Beta Was this translation helpful? Give feedback.
-
I am also curious if you got the next-auth functionality working in nextron? |
Beta Was this translation helpful? Give feedback.
-
Any luck anywhere? |
Beta Was this translation helpful? Give feedback.
-
any updates ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
Hi, i'm using for the first time NextAuth.js because i need to create a login page with Discord and check if has roles in a server an access to the dashboard.
It's an app created with Nextron (Nexjs + Electron).
When i start my app i noticed that if i use the function
signIn('discord')
it redirects me to a blank page forever until i close the app.I searched online and i saw that the "solution" was to setting
nodeIntegration: false
, doing so all my pages where white and the console says 'global is not defined'.I don't know how to fix it or other.
This is what happens:

(nodeIntegration: true)
With

(nodeIntegration: false)
:How to reproduce ☕️
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions