Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Open Social SignIn in external window - Better Auth
BA
Better Auth
•
12mo 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
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
using signin.social giving invalid_code
BA
Better Auth / help
2mo ago
Custom values into `authClient.signIn.social()`?
BA
Better Auth / help
11mo ago
Google Sign-In Not Working with `authClient.signIn.social()`
BA
Better Auth / help
12mo ago
Social Auth - Implement Custom Logic after SignIn
BA
Better Auth / help
8mo ago