🐛 fix: Try fix authorization code exchange & pin next-auto to beta.29 (#8496)

* 📌 pin: next-auth@beta.29

* 🐛 fix: infinite redirection
This commit is contained in:
Rylan Cai
2025-07-20 01:03:35 +08:00
committed by GitHub
parent 472c40e969
commit 27c4881205
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -211,7 +211,7 @@
"modern-screenshot": "^4.6.0",
"nanoid": "^5.1.5",
"next": "~15.3.3",
"next-auth": "5.0.0-beta.25",
"next-auth": "5.0.0-beta.29",
"next-mdx-remote": "^5.0.0",
"nextjs-toploader": "^3.8.16",
"node-machine-id": "^1.1.12",
@@ -75,8 +75,8 @@ export default memo(() => {
const searchParams = useSearchParams();
// Redirect back to the page url
const callbackUrl = searchParams.get('callbackUrl') ?? '';
// Redirect back to the page url, fallback to '/' if failed
const callbackUrl = searchParams.get('callbackUrl') ?? '/';
const handleSignIn = async (provider: string) => {
try {