diff --git a/bun.lockb b/bun.lockb index 226a646..86553ee 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 8db5145..85d9eae 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ "js-cookie": "^3.0.5", "moment": "^2.30.1", "negotiator": "^0.6.4", - "next": "^14.2.5", - "next-auth": "^4.24.7", + "next": "^14.2.18", + "next-auth": "^4.24.10", "next-nprogress-bar": "^2.3.15", "react": "^18.3.1", "react-bootstrap": "^2.10.6", @@ -41,7 +41,7 @@ "devDependencies": { "@types/js-cookie": "^3.0.6", "@types/negotiator": "^0.6.3", - "@types/node": "^22.9.4", + "@types/node": "^22.10.0", "@types/react": "^18.3.12", "@types/react-copy-to-clipboard": "^5.0.7", "@types/react-dom": "^18.3.1", diff --git a/src/app/(authentication)/login/login.tsx b/src/app/(authentication)/login/login.tsx index dbd6246..90a3436 100644 --- a/src/app/(authentication)/login/login.tsx +++ b/src/app/(authentication)/login/login.tsx @@ -52,7 +52,7 @@ export default function Login({ callbackUrl }: { callbackUrl: string }) { setError('Login failed') return } - router.push(url || '/') + window.location.href = url ?? callbackUrl } catch (err) { if (err instanceof Error) { setError(err.message)