fix: auth in electron

This commit is contained in:
Stephen Zhou
2024-12-25 10:02:06 +08:00
parent d42f52d3f1
commit 405ee42e8a
3 changed files with 22 additions and 14 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export const loginHandler = async (
},
) => {
const { email, password } = args ?? {}
if (IN_ELECTRON) {
if (IN_ELECTRON && provider !== "credential") {
window.open(`${WEB_URL}/login?provider=${provider}`)
} else {
if (provider === "credential") {