[Electron JS] oauth-callback Error.
I have Nextjs project wrapped with electron js.
When singin in with email / otp link there is no problem.
When using the Google oauth provider I get the following error
[NEXT] Handler http://localhost:3000/handler/sign-up?_rsc=1zik8 200
(node:44380) electron: Failed to load URL: http://localhost:3000/handler/oauth-callback?after_auth_return_to=%2F&code=37342386b343303b2c61c5155bd1dad8160cd9ef7f65a7148699cd1c1ef216c6&state=-gtVpOhFGz1cq7r_DK3dGzSf6xHtDlNchg5lIE-5X3Y with error: ERR_CONNECTION_REFUSED
When running just the Next app I see the "redirecting" message and the callback follows through.
When running the built electron app, I get the above error.... in dev mode id just hands but it's still the same issue. It's not a misconfigured api key, nor the 0Auth redirect url, I have added correctly (issue is the same when using a shared key) as everything works fine when in just the browser running the next app.
I may have to just use the StackClientApp, but current docs has no clear guide how to use the StackClientApp instead of the StackServerApp in the stack.ts file.
I' de appreciate any help to set this up correctly.