From f5e0a604912774453c04147cceaa303f8e46980f Mon Sep 17 00:00:00 2001 From: girl-loves-coding Date: Wed, 6 Nov 2024 23:11:16 +0100 Subject: [PATCH] fix: adjust github auth redirect url --- packages/client/app/routes/auth.github.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/client/app/routes/auth.github.tsx b/packages/client/app/routes/auth.github.tsx index 675c622..df5c18e 100644 --- a/packages/client/app/routes/auth.github.tsx +++ b/packages/client/app/routes/auth.github.tsx @@ -6,7 +6,7 @@ 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`, }, }); @@ -14,7 +14,3 @@ export async function action({ request }: ActionFunctionArgs) { return redirect(data.url); } - -export async function loader() { - return redirect("/sign-up"); -}