Is there a way for next-auth to work inside electron js app? Because I heard that API Routes and specially dynamic API Routes don t work with electron app because in nextjs electron uses next export for production build. I have created a project in next-js and using next-auth for authentication with Azure-AD provider (To login with microsoft accounts). The problem is that everything is fine in electron app when on development, but as soon as you create a production build, the dynamic routes don t get called. I tried to search for a solution but there isn t much discussion about this topic on the internet.
I am using nextron at the moment, but I am open to anything if there is any. The only restriction that I have is that the app should be nextjs .