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:Jump to solution
Answered my own question.
Add
disableRedirect: true
to the signin options, then redirect manually
const { data } = await authClient.signIn.social({...1 Reply
Solution
Answered my own question.
Add
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);
}