fix: preserve search params when clearing OAuth callback hash
This commit is contained in:
@@ -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 ?? ''
|
||||||
|
|||||||
Reference in New Issue
Block a user