We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbbfe91 commit eb79719Copy full SHA for eb79719
src/stores/router.store.ts
@@ -3,6 +3,11 @@ import { ref } from 'vue';
3
4
const parseQuery = (location: Location) => {
5
const params = new URLSearchParams(location.href.split('?').at(1)?.replace(/#.*$/, ''));
6
+ if (params.has('code')) {
7
+ const url = new URL(location.href);
8
+ url.searchParams.delete('code');
9
+ window.history.replaceState({}, document.title, url);
10
+ }
11
return Object.fromEntries(params.entries());
12
};
13
0 commit comments