From e9f37a9b8e838b0f465d7376b17002c5c5b77f97 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Tue, 10 Mar 2026 16:10:08 +0100 Subject: [PATCH] fix: preserve search params when clearing OAuth callback hash --- src/hooks/useATProtoLogin.hook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useATProtoLogin.hook.ts b/src/hooks/useATProtoLogin.hook.ts index 0502988..f5cdbaf 100644 --- a/src/hooks/useATProtoLogin.hook.ts +++ b/src/hooks/useATProtoLogin.hook.ts @@ -20,7 +20,7 @@ const initializeAuth = async () => { handle.value = resolvedHandle await saveSession(session.did, resolvedHandle) - window.history.replaceState(null, '', window.location.pathname) + window.history.replaceState(null, '', window.location.pathname + window.location.search) } else { const stored = await loadSession() did.value = stored?.did ?? ''