fix: preserve search params when clearing OAuth callback hash

This commit is contained in:
Julien Calixte
2026-03-10 16:10:08 +01:00
parent 97c6f01e1c
commit e9f37a9b8e

View File

@@ -20,7 +20,7 @@ const initializeAuth = async () => {
handle.value = resolvedHandle handle.value = resolvedHandle
await saveSession(session.did, resolvedHandle) await saveSession(session.did, resolvedHandle)
window.history.replaceState(null, '', window.location.pathname) window.history.replaceState(null, '', window.location.pathname + window.location.search)
} else { } else {
const stored = await loadSession() const stored = await loadSession()
did.value = stored?.did ?? '' did.value = stored?.did ?? ''