From ed1d92f3926e4cf4a74cd43a7f2a15929aaffd52 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Sat, 22 Mar 2025 14:58:56 -0700 Subject: [PATCH] redirect if existing account --- app/api/oauth/[route]/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/oauth/[route]/route.ts b/app/api/oauth/[route]/route.ts index c51f4b18..f347158f 100644 --- a/app/api/oauth/[route]/route.ts +++ b/app/api/oauth/[route]/route.ts @@ -68,7 +68,7 @@ export async function GET( .from("identities") .update({ atp_did: session.did }) .eq("id", data.data.identity); - return; + return redirect(redirectPath); } const client = postgres(process.env.DB_URL as string, { idle_timeout: 5, -- 2.51.2