Skip to content

Commit 27c4881

Browse files
authored
πŸ› fix: Try fix authorization code exchange & pin next-auto to beta.29 (#8496)
* πŸ“Œ pin: next-auth@beta.29 * πŸ› fix: infinite redirection
1 parent 472c40e commit 27c4881

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

β€Žpackage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
"modern-screenshot": "^4.6.0",
212212
"nanoid": "^5.1.5",
213213
"next": "~15.3.3",
214-
"next-auth": "5.0.0-beta.25",
214+
"next-auth": "5.0.0-beta.29",
215215
"next-mdx-remote": "^5.0.0",
216216
"nextjs-toploader": "^3.8.16",
217217
"node-machine-id": "^1.1.12",

β€Žsrc/app/[variants]/(auth)/next-auth/signin/AuthSignInBox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export default memo(() => {
7575

7676
const searchParams = useSearchParams();
7777

78-
// Redirect back to the page url
79-
const callbackUrl = searchParams.get('callbackUrl') ?? '';
78+
// Redirect back to the page url, fallback to '/' if failed
79+
const callbackUrl = searchParams.get('callbackUrl') ?? '/';
8080

8181
const handleSignIn = async (provider: string) => {
8282
try {

0 commit comments

Comments
Β (0)