Skip to content

Commit

Permalink
chore: nvm, i am dumb:
Browse files Browse the repository at this point in the history
  • Loading branch information
NemesisLW committed Jul 9, 2024
1 parent 2f0f929 commit d9a3733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/(auth)/auth/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ export async function GET(request: Request) {
}
}

// return the user to an error page with instructions
// return the user to an error page
return NextResponse.redirect(`${origin}/error`);
}
2 changes: 1 addition & 1 deletion lib/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function login(formData: FormData) {
provider: "google",

// TO-DO: Add dynamic redirect URL
options: { redirectTo: "http://localhost:3000/auth/callback" },
options: { redirectTo: `${process.env.NEXT_PUBLIC_APP_URL}/auth/callback` },
});

if (error) {
Expand Down

0 comments on commit d9a3733

Please sign in to comment.