Skip to content

Commit e0d39fd

Browse files
committedOct 31, 2024
fix: preseve browser state
1 parent b6877c0 commit e0d39fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎lib/utils/exchangeAuthCode.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,11 @@ export const exchangeAuthCode = async ({
124124
// Clear all url params
125125
const cleanUrl = (url: URL): URL => {
126126
url.search = "";
127-
url.hash = "";
128127
return url;
129128
};
130129
const url = cleanUrl(new URL(window.location.toString()));
131130
// Replace current state and clear forward history
132-
window.history.replaceState(null, "", url);
131+
window.history.replaceState(window.history.state, "", url);
133132

134133
return {
135134
success: true,

0 commit comments

Comments
 (0)