Pass URL origin to auth flow (#37)

This commit is contained in:
Oğuzhan Koral
2025-06-24 18:19:18 +03:00
committed by GitHub
parent 2ff5849739
commit 57ef9685b6
2 changed files with 79 additions and 1 deletions
+3 -1
View File
@@ -86,7 +86,9 @@ const startAccountAddFlow = () => {
showHelp.value = true
}, 10_000)
const url = customServerUrl.value
? `http://localhost:29364/auth/add-account?serverUrl=${customServerUrl.value}`
? `http://localhost:29364/auth/add-account?serverUrl=${
new URL(customServerUrl.value).origin
}`
: `http://localhost:29364/auth/add-account`
app.$openUrl(url)