diff --git a/src/hooks/use-auth/use-auth-login/index.ts b/src/hooks/use-auth/use-auth-login/index.ts index a86c9edd..01e4932d 100644 --- a/src/hooks/use-auth/use-auth-login/index.ts +++ b/src/hooks/use-auth/use-auth-login/index.ts @@ -75,9 +75,9 @@ export const useLogin = () => { const nextPath = normalizePath(searchParams.get('path')); // window.location.replace(nextPath); - setTimeout(() => { - router.replace(nextPath); - }, 200); + + router.prefetch(nextPath); + router.replace(nextPath); } catch (error) { if (isCommonErrorResponse(error)) { console.error('[LOGIN ERROR]', error.errorCode, error.detail);