diff --git a/src/providers/AuthProvider/AuthProvider.tsx b/src/providers/AuthProvider/AuthProvider.tsx index b9af666..53d1c7d 100644 --- a/src/providers/AuthProvider/AuthProvider.tsx +++ b/src/providers/AuthProvider/AuthProvider.tsx @@ -64,6 +64,10 @@ export function AuthProvider({ children }: { children: React.ReactNode }) { useEffect(() => { const hash = window.location.hash.replace(/^#/, ''); + if (!hash) { + return; + } + if (!hash) { return; @@ -86,6 +90,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) { /* Clear the hash if there is a token. */ if (hashParams.has('access_token')) { // history.replace({ ...history.location, hash: null }); + console.log(93); navigate({ pathname: '/', hash: '',