© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Open Social SignIn in external window - Better Auth
BA
Better Auth
•
14mo ago
•
3 replies
zander
Open Social SignIn in external window
Is there anyway to specific the location of where the signin window should open
? I
'm trying to integrate better
-auth into electron and would love to open the auth window in the user
's browser instead of within the electron window
.
Solution
Answered my own question
.
Add
disableRedirect: true
disableRedirect: true
to the signin options
, then redirect manually
const
{ data
}
= await authClient
.signIn
.social
(
{
provider
:
'twitch
'
,
disableRedirect
: true
,
}
)
;
if
(data
?
.url
)
{
window
.electron
?
.openExternal
(data
.url
)
;
}
Jump to solution
Recent Announcements
Similar Threads
using signin.social giving invalid_code
BA
Better Auth / help
3mo ago
Custom values into `authClient.signIn.social()`?
BA
Better Auth / help
12mo ago
Google Sign-In Not Working with `authClient.signIn.social()`
BA
Better Auth / help
14mo ago
Social Auth - Implement Custom Logic after SignIn
BA
Better Auth / help
9mo ago