Skip to content

Commit

Permalink
fix: adjust github auth redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
girl-loves-coding committed Nov 6, 2024
1 parent ba60116 commit f5e0a60
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/client/app/routes/auth.github.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ export async function action({ request }: ActionFunctionArgs) {
const { data, error } = await supabase.auth.signInWithOAuth({
provider: "github",
options: {
redirectTo: `${new URL(request.url).origin}/sign-up`,
redirectTo: `${new URL(request.url).origin}/auth/callback`,
},
});

if (error) throw error;

return redirect(data.url);
}

export async function loader() {
return redirect("/sign-up");
}

0 comments on commit f5e0a60

Please sign in to comment.