store url in cache (#74)

This commit is contained in:
Oğuzhan Koral
2025-10-27 16:53:35 +03:00
committed by GitHub
parent 095ccf114d
commit 41e635c8ef
3 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -90,10 +90,10 @@ const accountCheckerIntervalFn = useIntervalFn(
const { generateChallenge } = useAuthManager()
const logIn = () => {
const challenge = generateChallenge()
const serverUrl = customServerUrl.value
? new URL(customServerUrl.value).origin
: 'https://app.speckle.systems'
const challenge = generateChallenge(serverUrl)
const authUrl = `${serverUrl}/authn/verify/sdui/${challenge}`
window.location.href = authUrl
}