File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/app/[variants]/(auth)/next-auth/signin Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 211
211
"modern-screenshot" : " ^4.6.0" ,
212
212
"nanoid" : " ^5.1.5" ,
213
213
"next" : " ~15.3.3" ,
214
- "next-auth" : " 5.0.0-beta.25 " ,
214
+ "next-auth" : " 5.0.0-beta.29 " ,
215
215
"next-mdx-remote" : " ^5.0.0" ,
216
216
"nextjs-toploader" : " ^3.8.16" ,
217
217
"node-machine-id" : " ^1.1.12" ,
Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ export default memo(() => {
75
75
76
76
const searchParams = useSearchParams ( ) ;
77
77
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' ) ?? '/ ' ;
80
80
81
81
const handleSignIn = async ( provider : string ) => {
82
82
try {
You canβt perform that action at this time.
0 commit comments