Open provider in a new window #8891
Unanswered
TranquilMarmot
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
We have an Electron app that is using a
BrowserWindow
to render a Next.js app that's usingnext-auth
.We want to be able to start the auth flow outside of the Electron app in the OS's native browser and then redirect back to the Electron app using a custom schema (i.e.
our-app://
)Currently, you can't set anything that's not
http://
/https://
as acallbackUrl
next-auth/packages/core/src/lib/assert.ts
Lines 27 to 35 in 32dbf54
Even if we were able to use our custom schema as a
callbackUrl
, the cookies aren't going to be set properly.Is there a way to trigger a
signin
call (fromnext-auth/react
) but have it open in a new window?Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions