Skip to content

Commit 31bf1cd

Browse files
authored
Merge pull request #303 from WeGo-Together/chiyoung-fix/login
[Test] router.replace 전에 router.refresh 추가
2 parents e2cfc1c + 7ab54a8 commit 31bf1cd

File tree

1 file changed

+1
-0
lines changed
  • src/hooks/use-auth/use-auth-login

1 file changed

+1
-0
lines changed

src/hooks/use-auth/use-auth-login/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export const useLogin = () => {
7575
setIsAuthenticated(true);
7676

7777
const nextPath = normalizePath(searchParams.get('path'));
78+
router.refresh();
7879
router.replace(nextPath);
7980
} catch (error) {
8081
if (isCommonErrorResponse(error)) {

0 commit comments

Comments
 (0)