From a43b231a21e3d00c941b956af5e8c4e3700c7064 Mon Sep 17 00:00:00 2001 From: Yuto Terada Date: Sun, 27 Oct 2024 10:12:36 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AB=E3=83=AC=E3=83=B3=E3=83=80=E3=83=BC?= =?UTF-8?q?=E9=80=A3=E6=90=BA=E6=99=82=E3=81=ABhome=E3=81=AB=E6=88=BB?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task_yell/src/app/api/auth/google-cal/callback/route.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/task_yell/src/app/api/auth/google-cal/callback/route.ts b/task_yell/src/app/api/auth/google-cal/callback/route.ts index f4811ca..b00c3c9 100644 --- a/task_yell/src/app/api/auth/google-cal/callback/route.ts +++ b/task_yell/src/app/api/auth/google-cal/callback/route.ts @@ -2,6 +2,7 @@ import { google, calendar_v3 } from "googleapis"; import { type NextRequest } from "next/server"; import { firebaseAdminApp } from "@/firebase/server-app"; +import { redirect } from "next/navigation"; function createOAuth2Client() { return new google.auth.OAuth2( @@ -79,4 +80,6 @@ export async function GET(req: NextRequest) { for (const event of events) { await ref.add(event); } + + redirect("/home"); }