Skip to content

Commit

Permalink
fix: add dumb router refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
debendraoli committed Nov 26, 2024
1 parent c836c22 commit d943a06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/(authentication)/login/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export default function Login({ callbackUrl }: { callbackUrl: string }) {
setError('Login failed')
return
}
await new Promise((resolve) => setTimeout(resolve, 5000))
router.replace(url || '/')
await new Promise((resolve) => setTimeout(resolve, 1000))
router.refresh()
} catch (err) {
if (err instanceof Error) {
setError(err.message)
Expand Down

0 comments on commit d943a06

Please sign in to comment.