Skip to content

Commit

Permalink
Merge pull request #5192 from mozilla/silent-auth-fallback-path
Browse files Browse the repository at this point in the history
Update fallback path for silent authentication error
  • Loading branch information
flozia authored Oct 17, 2024
2 parents a4d6f8d + 9097086 commit 034cdeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const handler = async (
`${process.env.SERVER_URL}/api/auth/callback/fxa?error=`,
)
) {
return NextResponse.redirect(`${process.env.SERVER_URL}/user/dashboard`);
return NextResponse.redirect(process.env.SERVER_URL as string);
}

return NextAuth(req, res, authOptions) as Promise<Response>;
Expand Down

0 comments on commit 034cdeb

Please sign in to comment.